Skip to content

Commit

Permalink
Fix texture rtView containing all levels and layers
Browse files Browse the repository at this point in the history
  • Loading branch information
thatcosmonaut committed Nov 7, 2023
1 parent 1116b72 commit 71742df
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/FNA3D_Driver_Vulkan.c
Original file line number Diff line number Diff line change
Expand Up @@ -5368,6 +5368,10 @@ static uint8_t VULKAN_INTERNAL_CreateTexture(
imageViewCreateInfo.components.b = VK_COMPONENT_SWIZZLE_IDENTITY;
imageViewCreateInfo.components.a = VK_COMPONENT_SWIZZLE_IDENTITY;

/* The rtView should only contain one level and one layer */
imageViewCreateInfo.subresourceRange.levelCount = 1;
imageViewCreateInfo.subresourceRange.layerCount = 1;

result = renderer->vkCreateImageView(
renderer->logicalDevice,
&imageViewCreateInfo,
Expand Down

0 comments on commit 71742df

Please sign in to comment.