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

Method GetVulkanDebugOperation

source/opt/debug_info_manager.cpp:614–623  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

612}
613
614uint32_t DebugInfoManager::GetVulkanDebugOperation(Instruction* inst) {
615 assert(inst->GetShaderDebugOpcode() ==
616 NonSemanticShaderDebugInfoDebugOperation &&
617 "inst must be Vulkan DebugOperation");
618 return context()
619 ->get_constant_mgr()
620 ->GetConstantFromInst(context()->get_def_use_mgr()->GetDef(
621 inst->GetSingleWordOperand(kDebugOperationOperandOperationIndex)))
622 ->GetU32();
623}
624
625uint32_t DebugInfoManager::GetVariableIdOfDebugValueUsedForDeclare(
626 Instruction* inst) {

Callers

nothing calls this directly

Calls 7

GetShaderDebugOpcodeMethod · 0.80
GetU32Method · 0.80
GetConstantFromInstMethod · 0.80
get_constant_mgrMethod · 0.80
GetSingleWordOperandMethod · 0.80
GetDefMethod · 0.45
get_def_use_mgrMethod · 0.45

Tested by

no test coverage detected