yum-mirror/slang
Making it easier to work with shaders
git clone https://git.yummers.dev/yum-mirror/slang
60ebadab1
master
1//TEST:SIMPLE(filecheck=CHECK): -entry MainCs -stage compute -profile glsl_450 -target spirv 2//CHECK: EntryPoint 3 4[vk::image_format("rgba8")] 5RWTexture2D < unorm float4 > DstColor ; 6 7[ numthreads ( 64 , 1 , 1 ) ] 8void MainCs ( uint3 Gid : SV_GroupID , uint GI : SV_GroupIndex , uint3 GTid : SV_GroupThreadID , uint3 DTid : SV_DispatchThreadID ) 9{ 10 DstColor [ 0 ] = float4 ( lerp ( DstColor [ 0 ].rgb, float3( 0, 0, 0 ), 1.0 ) , 1.0f ) ; 11}