hlsl.snorm.uav.comp 376 B

12345678910111213141516
  1. unorm float4 uf4;
  2. Texture3D<unorm float4> ResultInU: register(t0);
  3. RWTexture3D<unorm float4> ResultOutU: register(u0);
  4. Texture3D<snorm float4> ResultInS: register(t1);
  5. RWTexture3D<snorm float4> ResultOutS: register(u1);
  6. [numthreads(16, 16, 1)]
  7. void main(uint3 tid: SV_DispatchThreadID)
  8. {
  9. ResultOutS[tid] = ResultInS[tid] + uf4;
  10. ResultOutU[tid] = ResultInU[tid];
  11. }