pub struct Render { /* private fields */ }
Implementations§
Source§impl Render
impl Render
pub fn new( device: Arc<Device>, queue: Arc<Queue>, surface_texture_format: TextureFormat, vertex_shader_source: &str, fragment_shader_source: &str, ) -> Self
pub fn render_sprite( &mut self, position: Vec3, material: &SpriteMaterialRef, params: SpriteParams, )
pub fn render_sprite_2d( &mut self, position: Vec2, material: &SpriteMaterialRef, params: SpriteParams, )
pub fn render(&mut self, render_pass: &mut RenderPass<'_>)
pub fn create_material_png( &mut self, png: &[u8], label: &str, ) -> SpriteMaterialRef
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Render
impl !RefUnwindSafe for Render
impl !Send for Render
impl !Sync for Render
impl Unpin for Render
impl !UnwindSafe for Render
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more