xref: /aosp_15_r20/external/angle/third_party/glslang/src/Test/hlsl.cbuffer-offsets.comp (revision 8975f5c5ed3d1c378011245431ada316dfb6f244)
1// Correct offsets obtained from "HLSL Constant Buffer Visualizer"
2// https://maraneshi.github.io/HLSL-ConstantBufferLayoutVisualizer/
3
4cbuffer CB {
5    float f1;
6    float3 f3a3[3];
7    float f2;
8    float f3;
9
10    float1x1 m11;
11    float1x2 m12;
12    float2x1 m21;
13    float2x2 m22;
14
15    float3x3 m33;
16    float f4;
17
18    float3x4 m34;
19    float f5;
20
21    float4x3 m43;
22    float f6;
23
24    row_major float1x1 rm11;
25    row_major float1x2 rm12;
26    row_major float2x1 rm21;
27    row_major float2x2 rm22;
28
29    row_major float3x3 rm33;
30    float f7;
31
32    row_major float3x4 rm34;
33    float f8;
34
35    row_major float4x3 rm43;
36    float f9;
37
38    float f1a3[3];
39    float f10;
40};
41
42void main()
43{
44}
45