multiUAVLoad3.hlsl 322 B

123456789101112131415
  1. // RUN: %dxc -E main -T ps_6_0 %s | FileCheck %s
  2. // CHECK: Typed UAV Load Additional Formats
  3. struct PSInput {
  4. float4 position : SV_POSITION;
  5. float2 uv : TEXCOORD;
  6. };
  7. RWTexture2D<float2> g_tex : register(u0);
  8. float4 main(PSInput input) : SV_TARGET {
  9. float2 val = g_tex.Load(input.uv);
  10. return val.xyxx;
  11. }