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:
widberg
2026-03-23 13:25:56 -04:00
committed by Baldur Karlsson
parent 3f08b821e5
commit ec8f1d51f5
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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