File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -555,10 +555,13 @@ Error MetadataParser::validateRootSignature(
555
555
556
556
dxbc::RootParameterType PT =
557
557
static_cast <dxbc::RootParameterType>(Info.Header .ParameterType );
558
-
559
- case to_underlying (dxbc::RootParameterType::CBV):
560
- case to_underlying (dxbc::RootParameterType::UAV):
561
- case to_underlying (dxbc::RootParameterType::SRV): {
558
+ switch (PT) {
559
+ case dxbc::RootParameterType::Constants32Bit:
560
+ // ToDo: Add proper validation.
561
+ continue ;
562
+ case dxbc::RootParameterType::CBV:
563
+ case dxbc::RootParameterType::UAV:
564
+ case dxbc::RootParameterType::SRV: {
562
565
const dxbc::RTS0::v2::RootDescriptor &Descriptor =
563
566
RSD.ParametersContainer .getRootDescriptor (Info.Location );
564
567
if (!hlsl::rootsig::verifyRegisterValue (Descriptor.ShaderRegister ))
You can’t perform that action at this time.
0 commit comments