Cleanup.
This commit is contained in:
parent
cbdc8bf77c
commit
662071f333
@ -6246,7 +6246,8 @@ VK_DESTROY
|
||||
&& 0 != (m_flags & BGFX_TEXTURE_RT_MASK)
|
||||
&& 0 == (m_flags & BGFX_TEXTURE_RT_WRITE_ONLY)
|
||||
&& (_mip + 1) < m_numMips
|
||||
&& 0 != (_resolve & BGFX_RESOLVE_AUTO_GEN_MIPS);
|
||||
&& 0 != (_resolve & BGFX_RESOLVE_AUTO_GEN_MIPS)
|
||||
;
|
||||
|
||||
const VkImageLayout oldLayout = m_currentImageLayout;
|
||||
const VkImageLayout oldSingleMsaaLayout = m_currentSingleMsaaImageLayout;
|
||||
@ -6273,11 +6274,11 @@ VK_DESTROY
|
||||
resolve.srcSubresource.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT;
|
||||
resolve.srcSubresource.mipLevel = _mip;
|
||||
resolve.srcSubresource.baseArrayLayer = _layer;
|
||||
resolve.srcSubresource.layerCount = numLayers;
|
||||
resolve.srcSubresource.layerCount = numLayers;
|
||||
resolve.dstSubresource.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT;
|
||||
resolve.dstSubresource.mipLevel = _mip;
|
||||
resolve.dstSubresource.baseArrayLayer = _layer;
|
||||
resolve.dstSubresource.layerCount = numLayers;
|
||||
resolve.dstSubresource.layerCount = numLayers;
|
||||
resolve.extent.width = m_width;
|
||||
resolve.extent.height = m_height;
|
||||
resolve.extent.depth = 1;
|
||||
@ -6308,16 +6309,16 @@ VK_DESTROY
|
||||
VkImageBlit blit;
|
||||
blit.srcOffsets[0] = { 0, 0, 0 };
|
||||
blit.srcOffsets[1] = { mipWidth, mipHeight, 1 };
|
||||
blit.srcSubresource.aspectMask = m_aspectMask;
|
||||
blit.srcSubresource.mipLevel = 0;
|
||||
blit.srcSubresource.aspectMask = m_aspectMask;
|
||||
blit.srcSubresource.mipLevel = 0;
|
||||
blit.srcSubresource.baseArrayLayer = _layer;
|
||||
blit.srcSubresource.layerCount = numLayers;
|
||||
blit.srcSubresource.layerCount = numLayers;
|
||||
blit.dstOffsets[0] = { 0, 0, 0 };
|
||||
blit.dstOffsets[1] = { mipWidth, mipHeight, 1 };
|
||||
blit.dstSubresource.aspectMask = m_aspectMask;
|
||||
blit.dstSubresource.mipLevel = 0;
|
||||
blit.dstSubresource.aspectMask = m_aspectMask;
|
||||
blit.dstSubresource.mipLevel = 0;
|
||||
blit.dstSubresource.baseArrayLayer = _layer;
|
||||
blit.dstSubresource.layerCount = numLayers;
|
||||
blit.dstSubresource.layerCount = numLayers;
|
||||
|
||||
for (uint32_t i = _mip + 1; i < m_numMips; i++)
|
||||
{
|
||||
@ -6340,7 +6341,7 @@ VK_DESTROY
|
||||
, blit.srcSubresource.mipLevel
|
||||
, 1
|
||||
, _layer
|
||||
, numLayers
|
||||
, numLayers
|
||||
);
|
||||
|
||||
vkCmdBlitImage(
|
||||
@ -6364,7 +6365,7 @@ VK_DESTROY
|
||||
, _mip
|
||||
, m_numMips - _mip - 1
|
||||
, _layer
|
||||
, numLayers
|
||||
, numLayers
|
||||
);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user