mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-09 23:35:40 +00:00
Fix VS2015 variable shadowing warnings
This commit is contained in:
@@ -1241,8 +1241,6 @@ bool WrappedVulkan::Prepare_InitialState(WrappedVkRes *res)
|
||||
|
||||
region.bufferOffset = bufOffset;
|
||||
|
||||
VkFormat sizeFormat = GetDepthOnlyFormat(layout->format);
|
||||
|
||||
bufOffset += GetByteSize(layout->extent.width, layout->extent.height, layout->extent.depth,
|
||||
sizeFormat, m);
|
||||
|
||||
@@ -1737,14 +1735,10 @@ bool WrappedVulkan::Serialise_InitialState(ResourceId resid, WrappedVkRes *)
|
||||
|
||||
GetResourceManager()->WrapResource(Unwrap(d), arrayIm);
|
||||
|
||||
VkMemoryRequirements mrq = {0};
|
||||
|
||||
ObjDisp(d)->GetImageMemoryRequirements(Unwrap(d), Unwrap(arrayIm), &mrq);
|
||||
|
||||
VkMemoryAllocateInfo allocInfo = {
|
||||
VK_STRUCTURE_TYPE_MEMORY_ALLOCATE_INFO, NULL, mrq.size,
|
||||
GetGPULocalMemoryIndex(mrq.memoryTypeBits),
|
||||
};
|
||||
allocInfo.allocationSize = mrq.size;
|
||||
allocInfo.memoryTypeIndex = GetGPULocalMemoryIndex(mrq.memoryTypeBits);
|
||||
|
||||
VkDeviceMemory arrayMem;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user