Skip to content

Allocating heap memory for low level DX12 backend fails #1379

Closed
@ConorLPBoyle

Description

@ConorLPBoyle

When attempting to compile and run the trianglell example on Windows 10 64 bit MSVC with the default DX12 backend, the program panics at runtime with the following message:

thread 'main' panicked at 'assertion failed: `(left == right)`
  left: `0`,
 right: `-2147024809`', src\backend\dx12ll\src\factory.rs:215:8

The create_heap function asserts that

assert_eq!(winapi::S_OK, unsafe {
            self.inner.CreateHeap(&desc, &dxguid::IID_ID3D12Heap, &mut heap)
        });

Commenting this out, the example simply fails to run without providing a backtrace.

error: process didn't exit successfully: `target\debug\examples\trianglell.exe` (exit code: 2173)

The example works fine compiled with with --features vulkan.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions