diff --git a/src/reader/spirv/parser_impl.cc b/src/reader/spirv/parser_impl.cc index 4b9876770d..f30d0487db 100644 --- a/src/reader/spirv/parser_impl.cc +++ b/src/reader/spirv/parser_impl.cc @@ -120,11 +120,11 @@ void ParserImpl::ResetInternalModule() { } bool ParserImpl::ParseInternalModule() { - return ParseExtendedInstructionImports(); + return RegisterExtendedInstructionImports(); // TODO(dneto): fill in the rest } -bool ParserImpl::ParseExtendedInstructionImports() { +bool ParserImpl::RegisterExtendedInstructionImports() { for (const spvtools::opt::Instruction& import : module_->ext_inst_imports()) { std::string name( reinterpret_cast(import.GetInOperand(0).words.data())); diff --git a/src/reader/spirv/parser_impl.h b/src/reader/spirv/parser_impl.h index afeca7aef1..3c1b921705 100644 --- a/src/reader/spirv/parser_impl.h +++ b/src/reader/spirv/parser_impl.h @@ -96,8 +96,8 @@ class ParserImpl : Reader { /// Destroys the internal representation of the SPIR-V module. void ResetInternalModule(); - /// Parses OpExtInstImport instructions. - bool ParseExtendedInstructionImports(); + /// Registers extended instruction imports. Only "GLSL.std.450" is supported. + bool RegisterExtendedInstructionImports(); // The SPIR-V binary we're parsing std::vector spv_binary_;