KhronosGroup / KhronosGroup/SPIRV-Cross
[MSL] Image bindings wrong from GLSL->SPIRV-MSL
- Dominant language
- GLSL
- Stars
- 2.5k
- Forks
- 713
- Avg merge
- 2d 18h
- Merged PRs (30d)
- 16
Description
Hi, I have below glsl code
`layout (set = 0, binding = 0, r32ui) uniform coherent uimage2D my_image;`
the generated MSL code is:
```
volatile device atomic_uint* my_image_atomic [[id(1)]];
texture2d my_image [[id(1)]];
```
This causes a compilation error note: attribute ‘id’ set location to 1, but minimum is 2, can you help?
Thanks.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start from the reported GLSL declaration and compare it with the generated MSL declarations for my_image and my_image_atomic. Reproduce the reported compilation error and trace the binding assignment involved; done means the generated declarations use valid, non-conflicting resource IDs and compile successfully.
Written by the indexing model from the issue text.
Assessment
- Domain
- computer-graphics
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100