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

Method destroy

samples/extensions/shader_object/shader_object.cpp:2001–2009  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1999}
2000
2001void ShaderObject::Shader::destroy(VkDevice device)
2002{
2003 // Cleanup shader if not null
2004 if (shader != VK_NULL_HANDLE)
2005 {
2006 vkDestroyShaderEXT(device, shader, nullptr);
2007 shader = VK_NULL_HANDLE;
2008 }
2009}
2010
2011std::unique_ptr<vkb::VulkanSampleC> create_shader_object()
2012{

Callers 1

~ShaderObjectMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected