From b538f5cfb7929209a7b3bd7032e8d7d005ea14d5 Mon Sep 17 00:00:00 2001 From: Nathan Sobo Date: Mon, 29 Mar 2021 22:56:47 -0600 Subject: [PATCH] WIP Co-Authored-By: Max Brunsfeld --- gpui/src/platform/mac/renderer.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gpui/src/platform/mac/renderer.rs b/gpui/src/platform/mac/renderer.rs index 9deabb377d..9829a7d0c3 100644 --- a/gpui/src/platform/mac/renderer.rs +++ b/gpui/src/platform/mac/renderer.rs @@ -32,7 +32,7 @@ pub struct Renderer { instances: metal::Buffer, } -struct PathStencil { +struct PathSprite { layer_id: usize, atlas_id: usize, sprite: shaders::GPUISprite, @@ -128,7 +128,7 @@ impl Renderer { scene: &Scene, offset: &mut usize, drawable_size: Vector2F, - ) -> Vec { + ) -> Vec { let mut stencils = Vec::new(); let mut vertices = Vec::::new(); let mut current_atlas_id = None; @@ -137,7 +137,7 @@ impl Renderer { // Push a PathStencil struct for use later when sampling from the atlas as we draw the content of the layers let size = path.bounds.size().ceil().to_i32(); let (atlas_id, atlas_origin) = self.path_stencils.allocate(size).unwrap(); - stencils.push(PathStencil { + stencils.push(PathSprite { layer_id, atlas_id, sprite: shaders::GPUISprite {