pub struct Pipeline {
pub shader: PipelineData<RenderPipeline>,
pub vertex_buffer: PipelineData<VertexBuffers>,
pub texture: PipelineData<BindGroup>,
pub uniform: PipelineData<Option<BindGroup>>,
}Expand description
Container for pipeline values. Each pipeline takes only 1 vertex shader, 1 fragment shader, 1 texture data, and optionally a vector of uniform data.
Fields§
§shader: PipelineData<RenderPipeline>the shader buffer that’s sent to the gpu
vertex_buffer: PipelineData<VertexBuffers>The vertex buffer that’s sent to the gpu. This includes indices as well
texture: PipelineData<BindGroup>The texture that’s sent to the gpu.
uniform: PipelineData<Option<BindGroup>>the Uniform buffers that are sent to the gpu
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Pipeline
impl !RefUnwindSafe for Pipeline
impl Unpin for Pipeline
impl !UnwindSafe for Pipeline
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