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

Function VulkanFree

source/emulator/src/Graphics/Objects/GpuMemory.cpp:2235–2248  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2233}
2234
2235void VulkanFree(GraphicContext* ctx, VulkanMemory* mem)
2236{
2237 KYTY_PROFILER_FUNCTION();
2238
2239 EXIT_IF(ctx == nullptr);
2240 EXIT_IF(mem == nullptr);
2241
2242 vkFreeMemory(ctx->device, mem->memory, nullptr);
2243
2244 g_mem_stat->allocated[mem->type] -= mem->requirements.size;
2245 g_mem_stat->count[mem->type]--;
2246
2247 mem->memory = nullptr;
2248}
2249
2250void VulkanMapMemory(GraphicContext* ctx, VulkanMemory* mem, void** data)
2251{

Callers 6

VulkanDeleteBufferFunction · 0.85
delete_funcFunction · 0.85
delete_funcFunction · 0.85
delete_funcFunction · 0.85
delete_funcFunction · 0.85
delete_funcFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected