MCPcopy Create free account
hub / github.com/KhronosGroup/Vulkan-Profiles / GetStructure

Method GetStructure

library/test/mock_vulkan_api.hpp:141–149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

139 static MockVulkanAPI* sInstance;
140
141 const VkBaseOutStructure* GetStructure(const void* pNext, VkStructureType type)
142 {
143 const VkBaseOutStructure *p = static_cast<const VkBaseOutStructure*>(pNext);
144 while (p != nullptr) {
145 if (p->sType == type) return p;
146 p = p->pNext;
147 }
148 return nullptr;
149 }
150
151 void CheckChainedStructs(const void* pNext, const std::vector<VulkanStructData>& expectedStructs)
152 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected