We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6df034a commit 7030357Copy full SHA for 7030357
Graphics/GraphicsEngine/interface/PipelineState.h
@@ -437,6 +437,12 @@ struct PipelineStateCreateInfo
437
438
/// The number of elements in ppResourceSignatures array.
439
Uint32 ResourceSignaturesCount DEFAULT_INITIALIZER(0);
440
+
441
+ // In 32-bit, there might be a problem that may cause mismatch between C++ and C interfaces:
442
+ // PSODesc contains a Uint64 member, so the entire structure has 64-bit alignment. When
443
+ // another struct is derived from PipelineStateCreateInfo, though, the compiler may place
444
+ // another member in this space. To fix this, we add padding.
445
+ Uint32 _Padding;
446
};
447
typedef struct PipelineStateCreateInfo PipelineStateCreateInfo;
448
0 commit comments