MCPcopy Create free account
hub / github.com/NVIDIA-RTX/NVRHI / getNativeObject

Method getNativeObject

src/vulkan/vulkan-device.cpp:292–307  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

290 m_Context.device.destroyDescriptorSetLayout(m_Context.emptyDescriptorSetLayout);
291 m_Context.emptyDescriptorSetLayout = vk::DescriptorSetLayout();
292 }
293 }
294
295 Object Device::getNativeObject(ObjectType objectType)
296 {
297 switch (objectType)
298 {
299 case ObjectTypes::VK_Device:
300 return Object(m_Context.device);
301 case ObjectTypes::VK_PhysicalDevice:
302 return Object(m_Context.physicalDevice);
303 case ObjectTypes::VK_Instance:
304 return Object(m_Context.instance);
305 case ObjectTypes::Nvrhi_VK_Device:
306 return Object(this);
307 default:
308 return nullptr;
309 }
310 }

Callers

nothing calls this directly

Calls 1

ObjectClass · 0.85

Tested by

no test coverage detected