mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-07-13 16:45:56 +00:00
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() {
|
bool ParserImpl::ParseInternalModule() {
|
||||||
return ParseExtendedInstructionImports();
|
return RegisterExtendedInstructionImports();
|
||||||
// TODO(dneto): fill in the rest
|
// TODO(dneto): fill in the rest
|
||||||
}
|
}
|
||||||
|
|
||||||
bool ParserImpl::ParseExtendedInstructionImports() {
|
bool ParserImpl::RegisterExtendedInstructionImports() {
|
||||||
for (const spvtools::opt::Instruction& import : module_->ext_inst_imports()) {
|
for (const spvtools::opt::Instruction& import : module_->ext_inst_imports()) {
|
||||||
std::string name(
|
std::string name(
|
||||||
reinterpret_cast<const char*>(import.GetInOperand(0).words.data()));
|
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.
|
/// Destroys the internal representation of the SPIR-V module.
|
||||||
void ResetInternalModule();
|
void ResetInternalModule();
|
||||||
|
|
||||||
/// Parses OpExtInstImport instructions.
|
/// Registers extended instruction imports. Only "GLSL.std.450" is supported.
|
||||||
bool ParseExtendedInstructionImports();
|
bool RegisterExtendedInstructionImports();
|
||||||
|
|
||||||
// The SPIR-V binary we're parsing
|
// The SPIR-V binary we're parsing
|
||||||
std::vector<uint32_t> spv_binary_;
|
std::vector<uint32_t> spv_binary_;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user