lib_out_param_res.hlsl 395 B

1234567891011121314
  1. // RUN: %dxc -T lib_6_3 -auto-binding-space 11 -default-linkage external %s | FileCheck %s
  2. // resources in return/params disallowed for lib_6_3
  3. // CHECK: error: Exported function
  4. // CHECK: GetBuf
  5. // CHECK: must not contain a resource in parameter or return type
  6. Buffer<float4> GetBuf();
  7. [shader("pixel")]
  8. float4 test(uint i:I) : SV_Target {
  9. Buffer<float4> buf = GetBuf();
  10. return buf[i];
  11. }