bgfx/3rdparty/glslang/Test/hlsl.groupid.comp
Branimir Karadžić d0950f2b48 Updated glslang.
2018-05-19 09:38:04 -07:00

10 lines
276 B
Plaintext

RWTexture2D < float4 > OutputTexture;
// Test conversion between SPIR-V required uint3 group id, and sub-vec3 shader declaration.
[ numthreads ( 8 , 8 , 1 ) ]
void main ( uint2 vGroupId : SV_GroupID )
{
OutputTexture[ vGroupId . xy ] = float4(1.0, 0.0, 0.0, 1.0);
}