Wrong fields specified in image layout transition in Chapter06 Texture Mapping.
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 45/100
- Issue type
- Documentation
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- cpp
- Domain
- documentation
Research direction
Read the linked passage at line 352 of 06_Texture_mapping/00_Images.adoc and compare the two transition functions in attachments/24_texture_image.cpp, especially lines 521 and 742-772. Correct the queue-family field explanation and assess whether the functions should be canonicalized, then check the Chapter03 image-layout-transition reference for consistency.
Written by the indexing model from the issue text.
Description
In line 352 of 06_Texture_mapping/00_Images.adoc, it says:
If you are using the barrier to transfer queue family ownership, then
oldLayoutandnewLayoutfields should be the indices of the queue families. They must be set toVK_QUEUE_FAMILY_IGNOREDif you don't want to do this (not the default value!).
But actually, vk::ImageMemoryBarrier should use fields .srcQueueFamilyIndex and .dstQueueFamilyIndex in this case. And it should be explained why provided code in transitionImageLayout doesn't do so:
while transition_image_layout (yes, it's a different function, with inconsistent naming convention) does so:
https://github.com/KhronosGroup/Vulkan-Tutorial/blob/fef98131e744addae167848cb0f524bc107e9116/attachments/24_texture_image.cpp#L742-L772
This function is used in 03_Drawing_a_triangle. I think a better way is to canonicalize these two functions instead.
- Dominant language
- C++
- Stars
- 424
- Forks
- 127
- Avg merge
- 2d 21h
- Merged PRs (30d)
- 5
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from KhronosGroup/Vulkan-Tutorial
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
KhronosGroup/Vulkan-Tutorial#519 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 85/100
KhronosGroup/Vulkan-Tutorial#511 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
KhronosGroup/Vulkan-Tutorial#508 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 74/100
KhronosGroup/Vulkan-Tutorial#499 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
KhronosGroup/Vulkan-Tutorial#498 ·
All issues in KhronosGroup/Vulkan-Tutorial
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
AXERA-TECH/ax-llm#77 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
games-on-whales/wolf#509 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
bug-unconfirmed
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
NVIDIA/cuda-samples#453 ·