diff options
Diffstat (limited to 'source/opt/analyze_live_input_pass.cpp')
-rw-r--r-- | source/opt/analyze_live_input_pass.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source/opt/analyze_live_input_pass.cpp b/source/opt/analyze_live_input_pass.cpp index f54206f08..529e68467 100644 --- a/source/opt/analyze_live_input_pass.cpp +++ b/source/opt/analyze_live_input_pass.cpp @@ -22,7 +22,7 @@ namespace opt { Pass::Status AnalyzeLiveInputPass::Process() { // Current functionality assumes shader capability - if (!context()->get_feature_mgr()->HasCapability(SpvCapabilityShader)) + if (!context()->get_feature_mgr()->HasCapability(spv::Capability::Shader)) return Status::SuccessWithoutChange; Pass::Status status = DoLiveInputAnalysis(); return status; @@ -32,10 +32,10 @@ Pass::Status AnalyzeLiveInputPass::DoLiveInputAnalysis() { // Current functionality only supports frag, tesc, tese or geom shaders. // Report failure for any other stage. auto stage = context()->GetStage(); - if (stage != SpvExecutionModelFragment && - stage != SpvExecutionModelTessellationControl && - stage != SpvExecutionModelTessellationEvaluation && - stage != SpvExecutionModelGeometry) + if (stage != spv::ExecutionModel::Fragment && + stage != spv::ExecutionModel::TessellationControl && + stage != spv::ExecutionModel::TessellationEvaluation && + stage != spv::ExecutionModel::Geometry) return Status::Failure; context()->get_liveness_mgr()->GetLiveness(live_locs_, live_builtins_); return Status::SuccessWithoutChange; |