auto_binding_space.hlsl 551 B

1234567891011121314151617
  1. // RUN: %dxc -E main -T vs_6_0 -auto-binding-space 1 %s | FileCheck %s
  2. // Test that auto-binding-space affects only resources with no
  3. // explicit register nor space binding.
  4. // CHECK: buf_a texture f32 buf T0 t0,space1 1
  5. // CHECK: buf_b texture f32 buf T1 t1 1
  6. // CHECK: buf_c texture f32 buf T2 t0,space2 1
  7. // CHECK: buf_d texture f32 buf T3 t2,space3 1
  8. Buffer buf_a;
  9. Buffer buf_b : register(t1);
  10. Buffer buf_c : register(space2);
  11. Buffer buf_d : register(t2,space3);
  12. float main() : OUT {
  13. return buf_a[0] + buf_b[0] + buf_c[0] + buf_d[0];
  14. }