blob: f5246ed78b9d1b323f89e56ab3875a20ec9e6e82 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
// rw-buffer.slang
// Confirm that writing into a `RWBuffer` generates appropriate GLSL/SPIR-V.
//TEST:CROSS_COMPILE: -profile ps_5_0 -entry main -target spirv-assembly
RWBuffer<float> buffer;
float4 main(float u : U, int idx : IDX) : SV_Target
{
buffer[idx] = u;
return u;
}
|