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 vk_shader_create_info.setLayoutCount = 1;
2000 vk_shader_create_info.pSetLayouts = pSetLayouts;
2001 vk_shader_create_info.pushConstantRangeCount = 1;
2002 vk_shader_create_info.pPushConstantRanges = pPushConstantRange;
2003 vk_shader_create_info.pSpecializationInfo = nullptr;
2004}
2005
2006void ShaderObject::Shader::destroy(VkDevice device)
2007{
2008 // Cleanup shader if not null
2009 if (shader != VK_NULL_HANDLE)
2010 {
2011 vkDestroyShaderEXT(device, shader, nullptr);
2012 shader = VK_NULL_HANDLE;

Callers 1

~ShaderObjectMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected