yum-mirror/slang
Making it easier to work with shaders
git clone https://git.yummers.dev/yum-mirror/slang
69cb6e8f3
master
1//TEST:REFLECTION:-profile ps_4_0 -target spirv -no-codegen 2 3// Confirm that we can generate reflection info for arrays 4// 5// Note: just working with fixed-size arrays for now. 6// Unbounded arrays may require more work. 7 8layout ( binding = 0 , set = 1 ) cbuffer MyConstantBuffer 9{ 10float x ; 11 12float a [ 10 ]; 13 14float y ; 15} 16 17[[vk ::binding ( 1 , 2 ) ]]Texture2D tx ; 18[ gl::binding ( 2 , 3 )] Texture2D ta ; 19Texture2D ty ; 20SamplerState sx ; 21SamplerState sa [ 4 ]; 22SamplerState sy ; 23 24float4 main () : SV_Target 25{ 26return 0.0 ; 27}