2017-11-22 11:08:06 +00:00
|
|
|
RWByteAddressBuffer WriteOnly : register(u2);
|
2017-12-11 12:55:26 +00:00
|
|
|
ByteAddressBuffer ReadOnly : register(t0);
|
2017-11-22 11:08:06 +00:00
|
|
|
RWByteAddressBuffer ReadWrite : register(u1);
|
|
|
|
|
|
|
|
void comp_main()
|
|
|
|
{
|
|
|
|
WriteOnly.Store4(0, asuint(asfloat(ReadOnly.Load4(0))));
|
2017-12-12 11:52:45 +00:00
|
|
|
ReadWrite.Store4(0, asuint(asfloat(ReadWrite.Load4(0)) + 10.0f.xxxx));
|
2017-11-22 11:08:06 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
[numthreads(1, 1, 1)]
|
|
|
|
void main()
|
|
|
|
{
|
|
|
|
comp_main();
|
|
|
|
}
|