MCPcopy Create free account
hub / github.com/KhronosGroup/SPIRV-Tools / AddExtensionsForOperand

Method AddExtensionsForOperand

source/opt/trim_capabilities_pass.cpp:648–657  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

646}
647
648void TrimCapabilitiesPass::AddExtensionsForOperand(
649 const spv_operand_type_t type, const uint32_t value,
650 ExtensionSet* extensions) const {
651 const spvtools::OperandDesc* desc = nullptr;
652 spv_result_t result = spvtools::LookupOperand(type, value, &desc);
653 if (result != SPV_SUCCESS) {
654 return;
655 }
656 addSupportedExtensionsToSet(desc, extensions);
657}
658
659std::pair<CapabilitySet, ExtensionSet>
660TrimCapabilitiesPass::DetermineRequiredCapabilitiesAndExtensions() const {

Callers

nothing calls this directly

Calls 1

LookupOperandFunction · 0.85

Tested by

no test coverage detected