1 // RUN: %clang_cc1 -triple dxil-pc-shadermodel6.3-library -x hlsl -o - -fsyntax-only %s -verify
\r
3 // expected-error@+1{{binding type 't' only applies to SRV resources}}
\r
4 float f1 : register(t0);
\r
6 // expected-error@+1 {{binding type 'u' only applies to UAV resources}}
\r
7 float f2 : register(u0);
\r
9 // expected-error@+1{{binding type 'b' only applies to constant buffers. The 'bool constant' binding type is no longer supported}}
\r
10 float f3 : register(b9);
\r
12 // expected-error@+1 {{binding type 's' only applies to sampler state}}
\r
13 float f4 : register(s0);
\r
15 // expected-error@+1{{binding type 'i' ignored. The 'integer constant' binding type is no longer supported}}
\r
16 float f5 : register(i9);
\r
18 // expected-error@+1{{binding type 'x' is invalid}}
\r
19 float f6 : register(x9);
\r
21 cbuffer g_cbuffer1 {
\r
22 // expected-error@+1{{binding type 'c' ignored in buffer declaration. Did you mean 'packoffset'?}}
\r
23 float f7 : register(c2);
\r
26 tbuffer g_tbuffer1 {
\r
27 // expected-error@+1{{binding type 'c' ignored in buffer declaration. Did you mean 'packoffset'?}}
\r
28 float f8 : register(c2);
\r
31 cbuffer g_cbuffer2 {
\r
32 // expected-error@+1{{binding type 'b' only applies to constant buffer resources}}
\r
33 float f9 : register(b2);
\r
36 tbuffer g_tbuffer2 {
\r
37 // expected-error@+1{{binding type 'i' ignored. The 'integer constant' binding type is no longer supported}}
\r
38 float f10 : register(i2);
\r
41 // expected-error@+1{{binding type 'c' only applies to numeric variables in the global scope}}
\r
42 RWBuffer<float> f11 : register(c3);
\r