blob: 10141384cd7c6445d2ee2ed5dd73ef0ded486ac8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
//TEST:CROSS_COMPILE: -profile ps_5_0 -entry main -target spirv-assembly
// 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
{
writeColor(float3(1.0));
return float4(0);
}
|