blob: ce13ebf6a9b4c865d4c45e034a10e63c4d505ea1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
//TEST:SIMPLE(filecheck=CHECK): -profile ps_5_0 -entry main -target spirv-assembly
//TEST:SIMPLE(filecheck=CHECK): -profile ps_5_0 -entry main -target spirv-assembly -emit-spirv-directly
// Ensure that we can lower to `imageStore` correctly.
RWTexture2D<float4> t;
void writeColor(float3 v)
{
t[uint2(0,0)].xyz += v;
}
float4 main() : SV_Target
{
// CHECK: OpImageRead
// CHECK: OpImageWrite
writeColor(float3(1.0));
return float4(0);
}
|