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