Reintroduce support for custom primitives in iced_wgpu
This commit is contained in:
parent
6ea763c2a7
commit
d922b47815
11 changed files with 220 additions and 173 deletions
|
|
@ -501,14 +501,13 @@ impl Layer {
|
|||
let mut last_is_solid = None;
|
||||
|
||||
for (index, mesh) in meshes.iter().enumerate() {
|
||||
let Some(clip_bounds) =
|
||||
bounds.intersection(&(mesh.clip_bounds() * transformation))
|
||||
let Some(clip_bounds) = bounds
|
||||
.intersection(&(mesh.clip_bounds() * transformation))
|
||||
.and_then(Rectangle::snap)
|
||||
else {
|
||||
continue;
|
||||
};
|
||||
|
||||
let clip_bounds = clip_bounds.snap();
|
||||
|
||||
render_pass.set_scissor_rect(
|
||||
clip_bounds.x,
|
||||
clip_bounds.y,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue