MCPcopy Create free account
hub / github.com/InoriRus/Kyty / VulkanDeleteBuffer

Function VulkanDeleteBuffer

source/emulator/src/Graphics/Utils.cpp:303–315  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

301}
302
303void VulkanDeleteBuffer(GraphicContext* gctx, VulkanBuffer* buffer)
304{
305 KYTY_PROFILER_FUNCTION();
306
307 EXIT_IF(buffer == nullptr);
308 EXIT_IF(gctx == nullptr);
309
310 DeleteDescriptor(buffer);
311
312 vkDestroyBuffer(gctx->device, buffer->buffer, nullptr);
313 VulkanFree(gctx, &buffer->memory);
314 buffer->buffer = nullptr;
315}
316
317void UtilFillImage(GraphicContext* ctx, VulkanImage* dst_image, const void* src_data, uint64_t size, uint32_t src_pitch,
318 uint64_t dst_layout)

Callers 7

UtilFillImageFunction · 0.85
UtilFillBufferFunction · 0.85
DeleteAllMethod · 0.85
create_funcFunction · 0.85
update_funcFunction · 0.85
delete_funcFunction · 0.85
delete_funcFunction · 0.85

Calls 2

DeleteDescriptorFunction · 0.85
VulkanFreeFunction · 0.85

Tested by

no test coverage detected