pub struct MeshPipeline {
pub bind_group_layout: BindGroupLayout,
pub uniform_buffer: Buffer,
pub uniform_bind_group: BindGroup,
pub pipeline: RenderPipeline,
pub vertex_buffer: Buffer,
pub index_buffer: Buffer,
}
Fields§
§bind_group_layout: BindGroupLayout
§uniform_buffer: Buffer
§uniform_bind_group: BindGroup
§pipeline: RenderPipeline
§vertex_buffer: Buffer
§index_buffer: Buffer
Implementations§
Source§impl MeshPipeline
impl MeshPipeline
pub fn new( device: &Device, image_bind_group_layout: &BindGroupLayout, format: TextureFormat, ) -> Self
pub fn render( &mut self, device: &Device, encoder: &mut CommandEncoder, staging_belt: &mut StagingBelt, view: &TextureView, msaa: &TextureView, width: u32, height: u32, default_image: &WgpuImage, mesh: &Mesh, depth: f32, clip: Option<Rect>, )
Auto Trait Implementations§
impl !Freeze for MeshPipeline
impl !RefUnwindSafe for MeshPipeline
impl Send for MeshPipeline
impl Sync for MeshPipeline
impl Unpin for MeshPipeline
impl !UnwindSafe for MeshPipeline
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> Styleable<T> for T
impl<T> Styleable<T> for T
Source§fn styled(self) -> Styled<T>
fn styled(self) -> Styled<T>
Converts the
self
into a Styled<Self>
value.Source§fn attr_trans(
self,
key: &str,
value: impl Into<StyleAttributeValue>,
transition: impl Into<StyleTransition>,
) -> Styled<T>
fn attr_trans( self, key: &str, value: impl Into<StyleAttributeValue>, transition: impl Into<StyleTransition>, ) -> Styled<T>
Adds an attribute with a transition.