File tree Expand file tree Collapse file tree 1 file changed +20
-4
lines changed
llvm/include/llvm/BinaryFormat Expand file tree Collapse file tree 1 file changed +20
-4
lines changed Original file line number Diff line number Diff line change @@ -612,13 +612,29 @@ struct RootSignatureValidations {
612612 }
613613
614614 static bool isValidParameterType (dxbc::RootParameterType Type) {
615- // RootParameterType::Empty is the higest value in the enum.
616- return Type < dxbc::RootParameterType::Empty;
615+ switch (Type) {
616+ case dxbc::RootParameterType::Constants32Bit:
617+ return true ;
618+ default :
619+ return false ;
620+ }
617621 }
618622
619623 static bool isValidShaderVisibility (dxbc::ShaderVisibility Visibility) {
620- // ShaderVisibilityFlag::Empty is the higest value in the enum.
621- return Visibility < dxbc::ShaderVisibility::Empty;
624+ switch (Visibility) {
625+
626+ case ShaderVisibility::All:
627+ case ShaderVisibility::Vertex:
628+ case ShaderVisibility::Hull:
629+ case ShaderVisibility::Domain:
630+ case ShaderVisibility::Geometry:
631+ case ShaderVisibility::Pixel:
632+ case ShaderVisibility::Amplification:
633+ case ShaderVisibility::Mesh:
634+ return true ;
635+ case ShaderVisibility::Empty:
636+ return false ;
637+ }
622638 }
623639};
624640
You can’t perform that action at this time.
0 commit comments