MCPcopy Create free account
hub / github.com/KhronosGroup/Vulkan-ValidationLayers / FindEntrypoint

Method FindEntrypoint

layers/state_tracker/shader_module.cpp:1622–1630  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1620}
1621
1622std::shared_ptr<const EntryPoint> Module::FindEntrypoint(const char* name, VkShaderStageFlagBits stageBits) const {
1623 if (!name) return nullptr;
1624 for (const auto& entry_point : static_data_.entry_points) {
1625 if (entry_point->name.compare(name) == 0 && entry_point->stage == stageBits) {
1626 return entry_point;
1627 }
1628 }
1629 return nullptr;
1630}
1631
1632// Because the following is legal, need the entry point
1633// OpEntryPoint GLCompute %main "name_a"

Callers 4

ShaderStageStateMethod · 0.80
ValidateShaderStageMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected