pub struct PipelineLayout {
pub layout: PipelineLayout,
pub push_const_ranges: Vec<PushConstantRange>,
}
Fields§
§layout: PipelineLayout
§push_const_ranges: Vec<PushConstantRange>
Implementations§
Source§impl PipelineLayout
impl PipelineLayout
Sourcepub fn new(
device: &Device,
bind_group_layouts: &[&BindGroupLayout],
push_const_layouts: &[PushConstantLayout],
label: Label<'_>,
) -> Self
pub fn new( device: &Device, bind_group_layouts: &[&BindGroupLayout], push_const_layouts: &[PushConstantLayout], label: Label<'_>, ) -> Self
Create a new pipeline layout from push_const_layouts and bind_group_layouts.
Mostly for the pipeline_layout macro.
Auto Trait Implementations§
impl Freeze for PipelineLayout
impl !RefUnwindSafe for PipelineLayout
impl Send for PipelineLayout
impl Sync for PipelineLayout
impl Unpin for PipelineLayout
impl !UnwindSafe for PipelineLayout
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