globallycoherent3.hlsl 426 B

12345678910111213141516
  1. // RUN: %dxc -E main -T ps_6_0 %s | FileCheck %s
  2. // CHECK: 'globallycoherent' is not a valid modifier for a non-UAV type
  3. globallycoherent RWTexture1D<float4> uav1 : register(u3);
  4. RWBuffer<float4> uav2;
  5. globallycoherent float m;
  6. float4 main(uint2 a : A, uint2 b : B) : SV_Target
  7. {
  8. globallycoherent RWTexture1D<float4> uav3 = uav1;
  9. globallycoherent float x = 3;
  10. uav3[0] = 0;
  11. uav1[0] = 2;
  12. uav2[1] = 3;
  13. return 0;
  14. }