yum-mirror/glslang
git clone https://git.yummers.dev/yum-mirror/glslang
70942e5f
16.6.0
1struct OS { 2SamplerState ss ; 3float a ; 4Texture2D tex ; 5} ; 6 7SamplerState gss ; 8SamplerState gss2 ; 9Texture2D gtex ; 10 11float4 osCall ( OS s ) 12{ 13return s . a * s . tex . Sample ( s . ss , float2 ( 0.2 , 0.3 )) ; 14} 15 16float4 main () : SV_TARGET0 17{ 18OS os ; 19os . ss = gss2 ; 20os . ss = gss ; 21os . tex = gtex ; 22os . a = 3.0 ; 23 24// this should give an error 25//SamplerState localss; 26//localss = gss2; 27 28return osCall ( os ) ; 29}