Struct wgpu_core::binding_model::PipelineLayout
source · pub struct PipelineLayout {
pub(crate) raw: ManuallyDrop<Box<dyn DynPipelineLayout>>,
pub(crate) device: Arc<Device>,
pub(crate) label: String,
pub(crate) bind_group_layouts: ArrayVec<Arc<BindGroupLayout>, { hal::MAX_BIND_GROUPS }>,
pub(crate) push_constant_ranges: ArrayVec<PushConstantRange, { SHADER_STAGE_COUNT }>,
}
Fields§
§raw: ManuallyDrop<Box<dyn DynPipelineLayout>>
§device: Arc<Device>
§label: String
The label
from the descriptor used to create the resource.
bind_group_layouts: ArrayVec<Arc<BindGroupLayout>, { hal::MAX_BIND_GROUPS }>
§push_constant_ranges: ArrayVec<PushConstantRange, { SHADER_STAGE_COUNT }>
Implementations§
source§impl PipelineLayout
impl PipelineLayout
pub(crate) fn raw(&self) -> &dyn DynPipelineLayout
pub(crate) fn get_binding_maps( &self, ) -> ArrayVec<&EntryMap, { hal::MAX_BIND_GROUPS }>
sourcepub(crate) fn validate_push_constant_ranges(
&self,
stages: ShaderStages,
offset: u32,
end_offset: u32,
) -> Result<(), PushConstantUploadError>
pub(crate) fn validate_push_constant_ranges( &self, stages: ShaderStages, offset: u32, end_offset: u32, ) -> Result<(), PushConstantUploadError>
Validate push constants match up with expected ranges.
Trait Implementations§
source§impl Debug for PipelineLayout
impl Debug for PipelineLayout
source§impl Drop for PipelineLayout
impl Drop for PipelineLayout
source§impl Labeled for PipelineLayout
impl Labeled for PipelineLayout
source§fn label(&self) -> &str
fn label(&self) -> &str
Returns a string identifying this resource for logging and errors. Read more
fn error_ident(&self) -> ResourceErrorIdent
source§impl ParentDevice for PipelineLayout
impl ParentDevice for PipelineLayout
source§impl ResourceType for PipelineLayout
impl ResourceType for PipelineLayout
source§impl StorageItem for PipelineLayout
impl StorageItem for PipelineLayout
type Marker = PipelineLayout
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