Fix HLSL offsets for non-cbuffers (#3668)
This commit is contained in:
parent
4b73607b89
commit
9f34b25f30
4 changed files with 105 additions and 7 deletions
13
Test/hlsl.buffer-offsets.comp
Normal file
13
Test/hlsl.buffer-offsets.comp
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
// See https://github.com/KhronosGroup/glslang/issues/3668
|
||||
|
||||
struct GfxIterationData {
|
||||
float mIntegrationTrafo[24];
|
||||
float mWind[3];
|
||||
uint mIsTurning;
|
||||
};
|
||||
|
||||
StructuredBuffer<GfxIterationData> bIterData : register(t2);
|
||||
|
||||
void main()
|
||||
{
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue