| 1 |
static const uint3 gl_WorkGroupSize = uint3(1u, 1u, 1u); |
| 2 |
|
| 3 |
Texture2D<float4> uImageInF : register(t0); |
| 4 |
RWTexture2D<float> uImageOutF : register(u1); |
| 5 |
Texture2D<int4> uImageInI : register(t2); |
| 6 |
RWTexture2D<int> uImageOutI : register(u3); |
| 7 |
Texture2D<uint4> uImageInU : register(t4); |
| 8 |
RWTexture2D<uint> uImageOutU : register(u5); |
| 9 |
Buffer<float4> uImageInBuffer : register(t6); |
| 10 |
RWBuffer<float> uImageOutBuffer : register(u7); |
| 11 |
Texture2D<float4> uImageInF2 : register(t8); |
| 12 |
RWTexture2D<float2> uImageOutF2 : register(u9); |
| 13 |
Texture2D<int4> uImageInI2 : register(t10); |
| 14 |
RWTexture2D<int2> uImageOutI2 : register(u11); |
| 15 |
Texture2D<uint4> uImageInU2 : register(t12); |
| 16 |
RWTexture2D<uint2> uImageOutU2 : register(u13); |
| 17 |
Buffer<float4> uImageInBuffer2 : register(t14); |
| 18 |
RWBuffer<float2> uImageOutBuffer2 : register(u15); |
| 19 |
Texture2D<float4> uImageInF4 : register(t16); |
| 20 |
RWTexture2D<float4> uImageOutF4 : register(u17); |
| 21 |
Texture2D<int4> uImageInI4 : register(t18); |
| 22 |
RWTexture2D<int4> uImageOutI4 : register(u19); |
| 23 |
Texture2D<uint4> uImageInU4 : register(t20); |
| 24 |
RWTexture2D<uint4> uImageOutU4 : register(u21); |
| 25 |
Buffer<float4> uImageInBuffer4 : register(t22); |
| 26 |
RWBuffer<float4> uImageOutBuffer4 : register(u23); |
| 27 |
RWTexture2D<float4> uImageNoFmtF : register(u24); |
| 28 |
RWTexture2D<uint4> uImageNoFmtU : register(u25); |
| 29 |
RWTexture2D<int4> uImageNoFmtI : register(u26); |
| 30 |
|
| 31 |
static uint3 gl_GlobalInvocationID; |
| 32 |
struct SPIRV_Cross_Input |
| 33 |
{ |
| 34 |
uint3 gl_GlobalInvocationID : SV_DispatchThreadID; |
| 35 |
}; |
| 36 |
|
| 37 |
void comp_main() |
| 38 |
{ |
| 39 |
float4 f = uImageInF[int2(gl_GlobalInvocationID.xy)]; |
| 40 |
uImageOutF[int2(gl_GlobalInvocationID.xy)] = f.x; |
| 41 |
int4 i = uImageInI[int2(gl_GlobalInvocationID.xy)]; |
| 42 |
uImageOutI[int2(gl_GlobalInvocationID.xy)] = i.x; |
| 43 |
uint4 u = uImageInU[int2(gl_GlobalInvocationID.xy)]; |
| 44 |
uImageOutU[int2(gl_GlobalInvocationID.xy)] = u.x; |
| 45 |
float4 b = uImageInBuffer[int(gl_GlobalInvocationID.x)]; |
| 46 |
uImageOutBuffer[int(gl_GlobalInvocationID.x)] = b.x; |
| 47 |
float4 f2 = uImageInF2[int2(gl_GlobalInvocationID.xy)]; |
| 48 |
uImageOutF2[int2(gl_GlobalInvocationID.xy)] = f2.xy; |
| 49 |
int4 i2 = uImageInI2[int2(gl_GlobalInvocationID.xy)]; |
| 50 |
uImageOutI2[int2(gl_GlobalInvocationID.xy)] = i2.xy; |
| 51 |
uint4 u2 = uImageInU2[int2(gl_GlobalInvocationID.xy)]; |
| 52 |
uImageOutU2[int2(gl_GlobalInvocationID.xy)] = u2.xy; |
| 53 |
float4 b2 = uImageInBuffer2[int(gl_GlobalInvocationID.x)]; |
| 54 |
uImageOutBuffer2[int(gl_GlobalInvocationID.x)] = b2.xy; |
| 55 |
float4 f4 = uImageInF4[int2(gl_GlobalInvocationID.xy)]; |
| 56 |
uImageOutF4[int2(gl_GlobalInvocationID.xy)] = f4; |
| 57 |
int4 i4 = uImageInI4[int2(gl_GlobalInvocationID.xy)]; |
| 58 |
uImageOutI4[int2(gl_GlobalInvocationID.xy)] = i4; |
| 59 |
uint4 u4 = uImageInU4[int2(gl_GlobalInvocationID.xy)]; |
| 60 |
uImageOutU4[int2(gl_GlobalInvocationID.xy)] = u4; |
| 61 |
float4 b4 = uImageInBuffer4[int(gl_GlobalInvocationID.x)]; |
| 62 |
uImageOutBuffer4[int(gl_GlobalInvocationID.x)] = b4; |
| 63 |
uImageNoFmtF[int2(gl_GlobalInvocationID.xy)] = b2; |
| 64 |
uImageNoFmtU[int2(gl_GlobalInvocationID.xy)] = u4; |
| 65 |
uImageNoFmtI[int2(gl_GlobalInvocationID.xy)] = i4; |
| 66 |
} |
| 67 |
|
| 68 |
[numthreads(1, 1, 1)] |
| 69 |
void main(SPIRV_Cross_Input stage_input) |
| 70 |
{ |
| 71 |
gl_GlobalInvocationID = stage_input.gl_GlobalInvocationID; |
| 72 |
comp_main(); |
| 73 |
} |