First Commit
This commit is contained in:
15
externals/glslang/Test/hlsl.structbuffer.rwbyte.frag
vendored
Normal file
15
externals/glslang/Test/hlsl.structbuffer.rwbyte.frag
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
|
||||
RWByteAddressBuffer sbuf;
|
||||
|
||||
float4 main(uint pos : FOO) : SV_Target0
|
||||
{
|
||||
uint size;
|
||||
sbuf.GetDimensions(size);
|
||||
|
||||
sbuf.Store(pos, sbuf.Load(pos));
|
||||
sbuf.Store2(pos, sbuf.Load2(pos));
|
||||
sbuf.Store3(pos, sbuf.Load3(pos));
|
||||
sbuf.Store4(pos, sbuf.Load4(pos));
|
||||
|
||||
return sbuf.Load(pos);
|
||||
}
|
||||
Reference in New Issue
Block a user