You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
voidnode10(RWThreadNodeInputRecord<BAD_RECORD2> input) // expected-error {{object ''SamplerState'' is not allowed in node records}}
89
+
voidnode10(RWThreadNodeInputRecord<BAD_RECORD2> input) // expected-error {{object 'SamplerState' is not allowed in node records}}
90
90
{ }
91
91
92
92
[Shader("node")]
93
93
[NodeLaunch("thread")]
94
-
voidnode11(NodeOutput<BAD_RECORD> input) // expected-error {{object ''SamplerState'' is not allowed in node records}}
94
+
voidnode11(NodeOutput<BAD_RECORD> input) // expected-error {{object 'SamplerState' is not allowed in node records}}
95
95
{ }
96
96
97
97
[Shader("node")]
98
98
[NodeLaunch("thread")]
99
-
voidnode12(NodeOutputArray<MyBadRecord> output) // expected-error {{object ''SamplerState'' is not allowed in node records}}
99
+
voidnode12(NodeOutputArray<MyBadRecord> output) // expected-error {{object 'SamplerState' is not allowed in node records}}
100
100
{ }
101
101
102
102
[Shader("node")]
@@ -129,7 +129,7 @@ void node16()
129
129
130
130
ThreadNodeOutputRecords<f2x2> outrec2; // expected-error {{'f2x2' (aka 'matrix<float, 2, 2>') is not valid as a node record type - struct/class required}}
131
131
132
-
GroupNodeOutputRecords<MyBadRecord> outrec3; // expected-error {{object ''SamplerState'' is not allowed in node records}}
132
+
GroupNodeOutputRecords<MyBadRecord> outrec3; // expected-error {{object 'SamplerState' is not allowed in node records}}
133
133
134
134
ThreadNodeOutputRecords<SamplerState> outrec4; // expected-error {{'SamplerState' is not valid as a node record type - struct/class required}}
Copy file name to clipboardExpand all lines: tools/clang/test/SemaHLSL/template-checks.hlsl
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,8 @@
1
1
// RUN: %dxc -Tlib_6_3 -verify %s
2
2
3
3
Texture2D<float4> t_float4;
4
-
Texture2D<SamplerState> t_obj_sampler; /* expected-error {{object ''SamplerState'' is not allowed in type parameters}} fxc-error {{X3124: object element type cannot be an object type}} */
5
-
Texture2D<Texture2D<float4> > t_obj_tex; /* expected-error {{object ''Texture2D<float4>'' is not allowed in type parameters}} fxc-error {{X3124: object element type cannot be an object type}} */
4
+
Texture2D<SamplerState> t_obj_sampler; /* expected-error {{object 'SamplerState' is not allowed in type parameters}} fxc-error {{X3124: object element type cannot be an object type}} */
5
+
Texture2D<Texture2D<float4> > t_obj_tex; /* expected-error {{object 'Texture2D<float4>' is not allowed in type parameters}} fxc-error {{X3124: object element type cannot be an object type}} */
6
6
7
7
matrix<SamplerState, 1, 2> m_obj_sampler; /* expected-error {{'SamplerState' cannot be used as a type parameter where a scalar is required}} fxc-error {{X3123: matrix element type must be a scalar type}} */
8
8
matrix<bool, 1, 2> m_bool;
@@ -15,7 +15,7 @@ matrix<bool, 1, 2> m_bool;
15
15
16
16
RWBuffer<double3> rwb_struct; /* expected-error {{elements of typed buffers and textures must fit in four 32-bit quantities}} fxc-error {{X3037: elements of typed buffers and textures must fit in four 32-bit quantities}} */
17
17
18
-
RWBuffer<SamplerState> rwb_struct_objs; /* expected-error {{object ''SamplerState'' is not allowed in type parameters}} */
18
+
RWBuffer<SamplerState> rwb_struct_objs; /* expected-error {{object 'SamplerState' is not allowed in type parameters}} */
0 commit comments