mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-04 09:00:44 +00:00
Move alignas
Placing `alignas` before the type is more in-line with the C++ standard, Microsoft Learn examples, and other places in this codebase. While the old way worked with MSVC, this is more consistent and improves compatibility with other tools without affecting the MSVC build.
This commit is contained in:
@@ -785,7 +785,7 @@ DECLARE_REFLECTION_STRUCT(D3D12_EXPANDED_PIPELINE_STATE_STREAM_DESC);
|
||||
|
||||
// subobject headers have to be aligned to pointer boundaries
|
||||
#define SUBOBJECT_HEADER(subobj) \
|
||||
D3D12_PIPELINE_STATE_SUBOBJECT_TYPE alignas(void *) CONCAT(header, subobj) = \
|
||||
alignas(void *) D3D12_PIPELINE_STATE_SUBOBJECT_TYPE CONCAT(header, subobj) = \
|
||||
CONCAT(D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_, subobj);
|
||||
|
||||
// similar to D3D12_EXPANDED_PIPELINE_STATE_STREAM_DESC but a packed version that can be passed
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
|
||||
// subobject headers have to be aligned to pointer boundaries
|
||||
#define SUBOBJECT_HEADER(subobj) \
|
||||
D3D12_PIPELINE_STATE_SUBOBJECT_TYPE alignas(void *) CONCAT(header, subobj) = \
|
||||
alignas(void *) D3D12_PIPELINE_STATE_SUBOBJECT_TYPE CONCAT(header, subobj) = \
|
||||
CONCAT(D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_, subobj);
|
||||
|
||||
struct GraphicsStreamData
|
||||
|
||||
Reference in New Issue
Block a user