local_resource4.hlsl 355 B

1234567891011121314151617181920
  1. // RUN: %dxc -E main -Od -T ps_6_0 %s | FileCheck %s
  2. // CHECK: main
  3. float4 Tex2D(Texture2D<float4> t,
  4. SamplerState s, float2 c) {
  5. return t.Sample(s, c);
  6. }
  7. Texture2D<float4> g_texture;
  8. SamplerState g_ss;
  9. static Texture2D<float4> g_texture2;
  10. float4 main(float2 c: T) : SV_Target {
  11. g_texture2 = g_texture;
  12. return Tex2D(g_texture2, g_ss, c);
  13. }