fixedWidth16Bit.hlsl 643 B

1234567891011121314151617181920212223
  1. // RUN: %dxilver 1.2 | %dxc -E main -T ps_6_2 -HV 2018 %s | FileCheck %s
  2. // CHECK: error: unknown type name 'int16_t'
  3. // CHECK-NOT: error: unknown type name 'int32_t'
  4. // CHECK: error: unknown type name 'uint16_t'
  5. // CHECK-NOT: error: unknown type name 'uint32_t'
  6. // CHECK: error: unknown type name 'float16_t'
  7. // CHECK-NOT: error: unknown type name 'float32_t'
  8. // CHECK-NOT: error: unknown type name 'float64_t'
  9. // int64_t/uint64_t already supported from 6.0
  10. float4 main(float col : COL) : SV_TARGET
  11. {
  12. int16_t i0;
  13. int32_t i1;
  14. uint16_t i2;
  15. uint32_t i3;
  16. float16_t f0;
  17. float32_t f1;
  18. float64_t f2;
  19. return col;
  20. }