Skip to content

Add subresourceRange to blit barrier - #446

Open
dagiantrat64 wants to merge 1 commit into
KhronosGroup:mainfrom
dagiantrat64:patch-2
Open

Add subresourceRange to blit barrier#446
dagiantrat64 wants to merge 1 commit into
KhronosGroup:mainfrom
dagiantrat64:patch-2

Conversation

@dagiantrat64

Copy link
Copy Markdown
Contributor

To match the source since it wasn't included in the main guide but is necessary for it to function

To match the source since it wasn't included in the main guide but is necessary for it to function
Copilot AI lite review requested due to automatic review settings August 12, 2026 02:26

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the mipmap-generation documentation code snippet to include subresourceRange on the blit-related image memory barrier, matching the reference implementation and ensuring the shown code functions correctly.

Changes:

  • Adds .subresourceRange to the vk::ImageMemoryBarrier designated initializer in the mipmap generation example.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

.srcQueueFamilyIndex = vk::QueueFamilyIgnored,
.dstQueueFamilyIndex = vk::QueueFamilyIgnored,
.image = image,
.subresourceRange = {.aspectMask = vk::ImageAspectFlagBits::eColor, .levelCount = 1, .layerCount = 1}};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants