Commit 4c8b2ad
committed
Guard particle spawn texcoord fetch against missing UVs
The particle spawn compute shader read emitter UVs unconditionally. For a
mesh without UVs, spawnMeshTexcoordsIdx == BINDING_INDEX_INVALID (0xFFFF),
so reading geometries[0xFFFF] is an out-of-range bindless descriptor access
that faults the GPU (VK_ERROR_DEVICE_LOST). Wrap the texcoord fetch and its
use in a BINDING_INDEX_INVALID guard, matching the existing color and
prev-position guards, so emitter meshes lacking UVs no longer crash.
Fixes #11001 parent 19ff0c9 commit 4c8b2ad
1 file changed
Lines changed: 12 additions & 4 deletions
Lines changed: 12 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
109 | | - | |
110 | | - | |
111 | | - | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
112 | 120 | | |
113 | | - | |
| 121 | + | |
114 | 122 | | |
115 | 123 | | |
116 | 124 | | |
| |||
0 commit comments