mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-05 22:41:25 +12:00
vk: Silence maybe-uninitialized warnings
This commit is contained in:
parent
b5faa8f83c
commit
4b2562d02a
1 changed files with 2 additions and 2 deletions
|
@ -181,7 +181,7 @@ namespace vk
|
||||||
VmaAllocation vma_alloc;
|
VmaAllocation vma_alloc;
|
||||||
VkMemoryRequirements mem_req = {};
|
VkMemoryRequirements mem_req = {};
|
||||||
VmaAllocationCreateInfo create_info = {};
|
VmaAllocationCreateInfo create_info = {};
|
||||||
VkResult error_code;
|
VkResult error_code = VK_ERROR_UNKNOWN;
|
||||||
|
|
||||||
auto do_vma_alloc = [&]() -> std::tuple<VkResult, u32>
|
auto do_vma_alloc = [&]() -> std::tuple<VkResult, u32>
|
||||||
{
|
{
|
||||||
|
@ -309,7 +309,7 @@ namespace vk
|
||||||
|
|
||||||
mem_allocator_vk::mem_handle_t mem_allocator_vk::alloc(u64 block_sz, u64 /*alignment*/, const memory_type_info& memory_type, vmm_allocation_pool pool, bool throw_on_fail)
|
mem_allocator_vk::mem_handle_t mem_allocator_vk::alloc(u64 block_sz, u64 /*alignment*/, const memory_type_info& memory_type, vmm_allocation_pool pool, bool throw_on_fail)
|
||||||
{
|
{
|
||||||
VkResult error_code;
|
VkResult error_code = VK_ERROR_UNKNOWN;
|
||||||
VkDeviceMemory memory;
|
VkDeviceMemory memory;
|
||||||
|
|
||||||
VkMemoryAllocateInfo info = {};
|
VkMemoryAllocateInfo info = {};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue