@@ -7558,8 +7558,6 @@ def err_hlsl_missing_type_specifier : Error< // Patterened after err_missing_typ
75587558 "HLSL requires a type specifier for all declarations">;
75597559def err_hlsl_multiple_concrete_bases : Error<
75607560 "multiple concrete base types specified">;
7561- def err_hlsl_objectintemplateargument : Error<
7562- "%0 is an object and cannot be used as a type parameter">;
75637561def err_hlsl_packoffset_requires_cbuffer : Error<
75647562 "packoffset is only allowed in a constant buffer">;
75657563def warn_hlsl_packoffset_mix : Warning<
@@ -7878,14 +7876,23 @@ def err_hlsl_load_from_mesh_out_arrays: Error<
78787876 "output arrays of a mesh shader can not be read from">;
78797877def err_hlsl_out_indices_array_incorrect_access: Error<
78807878 "a vector in out indices array must be accessed as a whole">;
7881- def err_hlsl_unsupported_type
7882- : Error<"%select{ vectors of over 4 elements|HitObjects}0 in "
7879+ def err_hlsl_unsupported_long_vector
7880+ : Error<"vectors of over 4 elements in "
78837881 "%select{ConstantBuffers or TextureBuffers|"
78847882 "tessellation patches|geometry streams|node records|"
78857883 "cbuffers or tbuffers|user-defined struct parameter|"
78867884 "entry function parameters|entry function return type|"
78877885 "patch constant function parameters|patch constant function return type|"
7888- "payload parameters|attributes}1 are not supported">;
7886+ "payload parameters|attributes}0 are not supported">;
7887+ // %select options must be compatible with err_hlsl_unsupported_long_vector (same index used)
7888+ def err_hlsl_unsupported_object_context
7889+ : Error<"object '%0' is not allowed in "
7890+ "%select{ConstantBuffers or TextureBuffers|"
7891+ "tessellation patches|geometry streams|node records|"
7892+ "cbuffers or tbuffers|user-defined struct parameter|"
7893+ "entry function parameters|entry function return type|"
7894+ "patch constant function parameters|patch constant function return type|"
7895+ "payload parameters|attributes|type parameters|structured buffers|global variables|groupshared variables}1">;
78897896def err_hlsl_logical_binop_scalar : Error<
78907897 "operands for short-circuiting logical binary operator must be scalar, for non-scalar types use '%select{and|or}0'">;
78917898def err_hlsl_ternary_scalar : Error<
@@ -7970,8 +7977,6 @@ def err_hlsl_too_many_node_inputs : Error<
79707977 "Node shader '%0' may not have more than one input record">;
79717978def err_hlsl_node_record_type : Error<
79727979 "%0 is not valid as a node record type - struct/class required">;
7973- def err_hlsl_node_record_object : Error<
7974- "object %0 may not appear in a node record">;
79757980def err_hlsl_array_disallowed : Error<
79767981 "%select{entry parameter|declaration}1 of type %0 may not be an array">;
79777982def err_hlsl_inputpatch_size: Error<
0 commit comments