glslang/Test/hlsl.hlslOffset.vert
John Kessenich 4f1403ed1b SPV: Fix #807: use --hlsl-offsets to allow hlsl-style offsets in a buffer.
Corresponds to the EShMsgHlslOffsets flag in messages.
Works for both GLSL and HLSL.
2017-04-05 17:38:20 -06:00

21 lines
332 B
GLSL
Executable File

cbuffer b {
float m0;
float3 m4;
//////
float m16;
float3 m20 : packoffset(c1.y);
/////
float3 m36 : packoffset(c2.y);
/////
float2 m56 : packoffset(c3.z);
/////
float m64;
float2 m68;
float m76;
//////
float m80;
float2 m96[1];
};
void main() {}