Skip to content

Commit

Permalink
[hgiVulkan] Set aspectMask correctly in HgiVulkanTexture::CopyBufferT…
Browse files Browse the repository at this point in the history
…oTexture.

Fixes #2442

(Internal change: 2279540)
  • Loading branch information
clach authored and pixar-oss committed Jun 16, 2023
1 parent 9fa90e9 commit f0e946f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pxr/imaging/hgiVulkan/texture.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,8 @@ HgiVulkanTexture::CopyBufferToTexture(

const HgiMipInfo &mipInfo = mipInfos[mip];
VkBufferImageCopy bufferCopyRegion = {};
bufferCopyRegion.imageSubresource.aspectMask= VK_IMAGE_ASPECT_COLOR_BIT;
bufferCopyRegion.imageSubresource.aspectMask =
HgiVulkanConversions::GetImageAspectFlag(_descriptor.usage);
bufferCopyRegion.imageSubresource.mipLevel = (uint32_t) mip;
bufferCopyRegion.imageSubresource.baseArrayLayer = 0;
bufferCopyRegion.imageSubresource.layerCount = _descriptor.layerCount;
Expand Down

0 comments on commit f0e946f

Please sign in to comment.