Skip to content

DRED binding always returns null data #457

@DeadMG

Description

@DeadMG

To reproduce, write some crappy code that crashes the GPU driver. Try to retrieve data using ID3D12DeviceRemovedExtendedData. GetAutoBreadcrumbsOutput always produces a structure with NULL head node. This is because the __MarshalFrom method is delegated to the head node's __MarshalFrom method, but in the default construction this is always null, so no marshalling ever occurs.

This affects ID3D12DeviceRemovedExtendedData1::GetAutoBreadcrumbsOutput1 as well.

I also note that usually there is a direct property getter in these cases, for example the options structs on ID3D12Device, but there doesn't seem to be one in the DRED interfaces. It's not really important unless these getters are meant to be automated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions