minor val fix

This commit is contained in:
Joshua Ashton 2022-08-13 21:19:29 +00:00
parent a9bb435d04
commit 785fa73510
2 changed files with 2 additions and 2 deletions

View File

@ -31,7 +31,7 @@ namespace orange
static constexpr VkImageSubresourceRange FirstDepthMipSubresourceRange =
{
.aspectMask = VK_IMAGE_ASPECT_DEPTH_BIT,
.aspectMask = VK_IMAGE_ASPECT_DEPTH_BIT | VK_IMAGE_ASPECT_STENCIL_BIT,
.baseMipLevel = 0,
.levelCount = 1,
.baseArrayLayer = 0,

View File

@ -399,7 +399,7 @@ int main(int argc, char** argv)
spng_get_ihdr(ctx, &ihdr);
spng_ctx_free(ctx);
auto r_texture = r_renderContext->CreateImage(pooler, ihdr.width, ihdr.height, VK_FORMAT_R8G8B8A8_SRGB, VK_IMAGE_USAGE_SAMPLED_BIT);
auto r_texture = r_renderContext->CreateImage(pooler, ihdr.width, ihdr.height, VK_FORMAT_R8G8B8A8_SRGB, VK_IMAGE_USAGE_SAMPLED_BIT | VK_IMAGE_USAGE_TRANSFER_DST_BIT);
auto r_textureView = r_renderContext->CreateImageView(*r_texture, VK_FORMAT_R8G8B8A8_SRGB, VK_IMAGE_ASPECT_COLOR_BIT);
VkDescriptorImageInfo descriptorImageInfo =