summaryrefslogtreecommitdiffstats
path: root/tests/bugs/gh-3086.slang
blob: a4e9025c4b933a5c73cbec24103d5a657b9d860f (plain)
1
2
3
4
5
6
7
8
9
10
11
//TEST:SIMPLE(filecheck=CHECK): -entry MainCs -stage compute -profile glsl_450 -target spirv
//CHECK: EntryPoint

[vk::image_format("rgba8")]
RWTexture2D < unorm float4 > DstColor  ; 

[ numthreads ( 64 , 1 , 1 ) ] 
void MainCs ( uint3 Gid : SV_GroupID , uint GI : SV_GroupIndex , uint3 GTid : SV_GroupThreadID , uint3 DTid : SV_DispatchThreadID ) 
{ 
    DstColor [ 0 ] = float4 ( lerp ( DstColor [ 0 ].rgb, float3( 0, 0, 0 ), 1.0 ) , 1.0f ) ;  
}