yum-mirror/glslang
git clone https://git.yummers.dev/yum-mirror/glslang
132cf537
16.5.0
1cbuffer buf1 { 2float4 v1 ; 3} ; // extraneous ; 4 5tbuffer buf2 { 6float4 v2 ; 7} ; // extraneous ; 8 9cbuffer cbufName { 10float4 v3 : packoffset ( c0 ) ; 11int i3 : packoffset ( c1 . y ) ; 12} 13 14tbuffer tbufName : register ( t8 ) { 15float4 v4 : packoffset ( c1 ) ; 16int i4 : packoffset ( c3 ) ; 17float f1 : packoffset ( c3 . w ) ; 18float f3 : packoffset ( c4 . x ) ; 19float f4 : packoffset ( c4 . y ) ; 20float f5 : packoffset ( c4 . z ) ; 21float f6 : packoffset ( c ) ; 22float f7 : packoffset ( c8 ) ; 23float3x4 m1 : packoffset ( c7 ) ; 24row_major float3x4 m2 : packoffset ( c11 ) ; 25column_major float3x4 m3 : packoffset ( c15 ) ; 26float3x4 m4 : packoffset ( c19 ) ; 27} 28 29float foo () // float looks like identifier, but can't be part of tbuffer 30{ 31return 1.0 ; 32} 33 34struct id { 35float4 a ; 36} ; 37 38cbuffer cbufName2 { 39float4 v24 ; 40} 41 42id PixelShaderFunction ( float4 input : SV_POSITION ) : SV_TARGET0 // id looks like id for cbuffer name, but can't be 43{ 44id ret ; 45ret . a = v24 + ( input + v1 + v2 + v3 + v4 ) * foo () ; 46return ret ; 47}