DirectX-Headers icon indicating copy to clipboard operation
DirectX-Headers copied to clipboard

`D3D12_PIPELINE_STATE_STREAM_DESC`'s `pPipelineStateSubobjectStream` should probably be a `const` pointer

Open MarijnS95 opened this issue 2 years ago • 1 comments

https://learn.microsoft.com/en-us/windows/win32/api/d3d12/ns-d3d12-d3d12_pipeline_state_stream_desc should be input-only data, and is more accurately described by taking const void *pPipelineStateSubobjectStream;.

MarijnS95 avatar Jan 29 '24 14:01 MarijnS95

For most of the history of Win32 APIs, structs don't use const void*. I've seen them showing up in newer DirectML.h headers. I suspect an issue here is that d3d12 core platform headers are generated using MIDL which doesn't support this annotation.

walbourn avatar Nov 07 '24 18:11 walbourn