MCPcopy Create free account
hub / github.com/KhronosGroup/Vulkan-Samples / get_parent

Method get_parent

framework/scene_graph/node.h:125–135  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

123
124template <vkb::BindingType bindingType>
125inline Node<bindingType> *Node<bindingType>::get_parent()
126{
127 if constexpr (bindingType == vkb::BindingType::Cpp)
128 {
129 return parent;
130 }
131 else
132 {
133 return reinterpret_cast<NodeC *>(parent);
134 }
135}
136
137template <vkb::BindingType bindingType>
138inline vkb::sg::Transform &Node<bindingType>::get_transform()

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected