Rename method RegisterExtendedInstructionImports
Bug: tint:3 Change-Id: If92bd97f9a71bd676ba40430fd736cf721c38747 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/17360 Reviewed-by: dan sinclair <dsinclair@google.com>
This commit is contained in:
parent
be4c89a4d2
commit
d854fc1543
|
@ -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<const char*>(import.GetInOperand(0).words.data()));
|
||||
|
|
|
@ -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<uint32_t> spv_binary_;
|
||||
|
|
Loading…
Reference in New Issue