Start on Scene::push_surface

Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
Antonio Scandurra
2022-09-13 14:10:13 +02:00
co-authored by Nathan Sobo
parent d473b52f5a
commit e12eaf8c58
3 changed files with 18 additions and 1 deletions
+1
View File
@@ -13,6 +13,7 @@ use cocoa::base::{BOOL, NO, YES};
pub use dispatcher::Dispatcher;
pub use fonts::FontSystem;
use platform::{MacForegroundPlatform, MacPlatform};
pub use renderer::Surface;
use std::{rc::Rc, sync::Arc};
use window::Window;
+4
View File
@@ -37,6 +37,10 @@ struct PathSprite {
shader_data: shaders::GPUISprite,
}
pub struct Surface {
pub bounds: RectF,
}
impl Renderer {
pub fn new(
device: metal::Device,