SPIRV-Cross/reference/shaders-hlsl/comp/globallycoherent.comp

21 lines
489 B
Plaintext
Raw Normal View History

static const uint3 gl_WorkGroupSize = uint3(1u, 1u, 1u);
2018-06-25 08:04:14 +00:00
globallycoherent RWByteAddressBuffer _29 : register(u3);
ByteAddressBuffer _33 : register(t2);
RWTexture2D<float> uImageIn : register(u0);
globallycoherent RWTexture2D<float> uImageOut : register(u1);
void comp_main()
{
int2 coord = int2(9, 7);
float4 indata = uImageIn[coord].xxxx;
uImageOut[coord] = indata.x;
_29.Store(0, asuint(asfloat(_33.Load(0))));
}
[numthreads(1, 1, 1)]
void main()
{
comp_main();
}