File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -203,10 +203,7 @@ inline bool isValidParameterType(uint32_t V) {
203203}
204204
205205inline bool isValidRangeType (uint32_t V) {
206- static_assert (llvm::to_underlying (dxil::ResourceClass::Sampler) == 3 ,
207- " dxil::ResourceClass numeric values must match the Root "
208- " Signature values associated to each class." );
209- return V <= llvm::to_underlying (dxil::ResourceClass::Sampler);
206+ return V <= llvm::to_underlying (dxil::ResourceClass::LastEntry);
210207}
211208
212209#define SHADER_VISIBILITY (Val, Enum ) Enum = Val,
Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ enum class ResourceClass : uint8_t {
2828 UAV,
2929 CBuffer,
3030 Sampler,
31+ LastEntry = Sampler,
3132};
3233
3334// / The kind of resource for an SRV or UAV resource. Sometimes referred to as
You can’t perform that action at this time.
0 commit comments