yum-mirror/glslang
git clone https://git.yummers.dev/yum-mirror/glslang
046bae0b
main
1struct S { 2float2 f ; 3}; 4 5[[vk ::binding (1 )]] 6StructuredBuffer < S > buffer1 ; 7 8[[vk ::binding (3 ,2 )]] 9StructuredBuffer < S > buffer3 ; 10 11[[vk ::input_attachment_index (4 )]] 12Texture2D < float4 > attach ; 13 14[[vk ::constant_id (13 )]]const int ci = 11 ; 15 16[[vk ::push_constant ]]cbuffer pcBuf {int a ; }; 17 18[[vk ::location (7 )]]float4 19main ([[vk ::location (8 )]]float4 input :A ) :B 20{ 21return input + attach .Load (float2 (0.5 ));// * a; 22}