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

Method HasBuiltIn

layers/state_tracker/shader_module.cpp:546–558  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

544}
545
546bool EntryPoint::HasBuiltIn(spv::BuiltIn built_in) const {
547 for (const auto* variable : built_in_variables) {
548 if (variable->decorations.built_in == built_in) {
549 return true;
550 }
551 for (const spv::BuiltIn member_built_in : variable->built_in_block) {
552 if (member_built_in == built_in) {
553 return true;
554 }
555 }
556 }
557 return false;
558}
559
560std::string EntryPoint::Describe() const {
561 std::stringstream ss;

Calls

no outgoing calls

Tested by

no test coverage detected