mirror of
https://github.com/italicsjenga/vello.git
synced 2025-01-08 20:01:30 +11:00
a016fc19de
The number of global invocations for draw_leaf can exceed the size of the draw_monoids buffer which gets conservatively set to the number of draw objects. Added an explicit bounds check to prevent the invalid write. This is not an issue when targeting wgpu as the WGSL compiler emits implicit bounds checking. When targeting Metal, we disable implicit bounds checks as that requires an extra buffer binding containing buffer sizes. This was caught by Xcode's Metal shader validation and resulted in visual artifacts in native rendering. |
||
---|---|---|
.. | ||
shared | ||
backdrop.wgsl | ||
backdrop_dyn.wgsl | ||
bbox_clear.wgsl | ||
binning.wgsl | ||
clip_leaf.wgsl | ||
clip_reduce.wgsl | ||
coarse.wgsl | ||
draw_leaf.wgsl | ||
draw_reduce.wgsl | ||
fine.wgsl | ||
path_coarse.wgsl | ||
path_coarse_full.wgsl | ||
pathseg.wgsl | ||
pathtag_reduce.wgsl | ||
pathtag_reduce2.wgsl | ||
pathtag_scan.wgsl | ||
pathtag_scan1.wgsl | ||
permutations | ||
tile_alloc.wgsl | ||
UNLICENSE |