vello/shader
Arman Uguray a016fc19de [draw_leaf] Don't write past the end of the draw_monoids buffer
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.
2023-06-28 12:39:24 -07:00
..
shared Address review feedback 2023-05-15 14:45:38 -04:00
backdrop.wgsl Move the vello crate to the workspace root (#231) 2023-01-05 09:32:09 +00:00
backdrop_dyn.wgsl Move the vello crate to the workspace root (#231) 2023-01-05 09:32:09 +00:00
bbox_clear.wgsl Move the vello crate to the workspace root (#231) 2023-01-05 09:32:09 +00:00
binning.wgsl Address review feedback 2023-01-18 21:36:32 -05:00
clip_leaf.wgsl [shaders] Explicitly guard writes to clip_bboxes 2023-04-21 18:43:51 -07:00
clip_reduce.wgsl Move the vello crate to the workspace root (#231) 2023-01-05 09:32:09 +00:00
coarse.wgsl rework radial gradients 2023-05-09 18:09:53 -04:00
draw_leaf.wgsl [draw_leaf] Don't write past the end of the draw_monoids buffer 2023-06-28 12:39:24 -07:00
draw_reduce.wgsl Move the vello crate to the workspace root (#231) 2023-01-05 09:32:09 +00:00
fine.wgsl Address review feedback 2023-05-15 14:45:38 -04:00
path_coarse.wgsl Move the vello crate to the workspace root (#231) 2023-01-05 09:32:09 +00:00
path_coarse_full.wgsl Add check for division-by-zero in path_coarse_full 2023-04-23 16:28:52 -07:00
pathseg.wgsl rework radial gradients 2023-05-09 18:09:53 -04:00
pathtag_reduce.wgsl Move the vello crate to the workspace root (#231) 2023-01-05 09:32:09 +00:00
pathtag_reduce2.wgsl Support for larger pathtags 2023-01-05 14:25:21 -08:00
pathtag_scan.wgsl Fix missing barriers in the pathtag_scans (#255) 2023-01-16 20:20:20 +00:00
pathtag_scan1.wgsl Fix missing barriers in the pathtag_scans (#255) 2023-01-16 20:20:20 +00:00
permutations Playing with shader permutations and AOT compilation 2023-03-29 10:38:10 -07:00
tile_alloc.wgsl Partially revert uniform load of bump.failed 2023-01-29 09:01:13 -08:00
UNLICENSE Move the vello crate to the workspace root (#231) 2023-01-05 09:32:09 +00:00