• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1ByteAddressBuffer g_input: register(t0);
2RWBuffer<uint2> g_output : register(u1);
3
4uint2 testLoad(uint loc, ByteAddressBuffer buffer)
5{
6    uint2 result = buffer.Load2(loc);
7    return result;
8}
9
10[numthreads(256, 1, 1)]
11void main(uint dispatchId : SV_DispatchThreadID)
12{
13    uint2 result = testLoad(dispatchId, g_input);
14    g_output[dispatchId] = result;
15}
16