shader: specialize cube image descriptors #134
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
GPU
GUI
help wanted
question
Shaders
Video
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/KytyPS5--KytyPS5!134
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/134/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@nikosszzz on GitHub · 2026-07-30 12:48 UTC · original
nikosszzz:main→main· +155 −56 · 5 files · 2 commits · merged 2026-07-31 01:59 UTCThis PR adds cube image awareness to shader resource specialization and SPIR-V image sampling.
Image descriptors are now specialized with cube map information, validated against the runtime descriptor, and propagated into the IR. During SPIR-V emission, cube images that are represented as 2D array images have their sampling coordinates adjusted to match the expected coordinate space.
Changes
DescriptorIsCube).cube/image_cubefields toImageResourceandMemoryInfo.Dim2DArray.Why
Previously, specialization only tracked the image dimension. Cube maps were treated the same as ordinary 2D array images, preventing the SPIR-V backend from distinguishing them when generating image sampling instructions.
By preserving cube information throughout specialization, the SPIR-V emitter can correctly handle cube image sampling while leaving the behavior of non-cube image resources unchanged.
Testing
@Nmzik on GitHub · 2026-07-31 01:59 UTC · original
@nikosszzz Thanks for finding the root cause. Accepted!