[][src]Struct wgpu::PipelineLayoutDescriptorBase

pub struct PipelineLayoutDescriptorBase<'a, B> where
    B: Clone
{ pub bind_group_layouts: Cow<'a, [B]>, pub push_constant_ranges: Cow<'a, [PushConstantRange]>, }

Describes a pipeline layout.

A PipelineLayoutDescriptor can be used to create a pipeline layout.

Fields

bind_group_layouts: Cow<'a, [B]>

Bind groups that this pipeline uses. The first entry will provide all the bindings for "set = 0", second entry will provide all the bindings for "set = 1" etc.

push_constant_ranges: Cow<'a, [PushConstantRange]>

Set of push constant ranges this pipeline uses. Each shader stage that uses push constants must define the range in push constant memory that corresponds to its single layout(push_constant) uniform block.

If this array is non-empty, the Features::PUSH_CONSTANTS must be enabled.

Implementations

impl<'a, B> PipelineLayoutDescriptor<'a, B> where
    B: Clone
[src]

pub fn new(
    bind_group_layouts: impl IntoCow<'a, [B]>,
    push_constant_ranges: impl IntoCow<'a, [PushConstantRange]>
) -> PipelineLayoutDescriptor<'a, B>
[src]

Trait Implementations

impl<'a, B> Clone for PipelineLayoutDescriptor<'a, B> where
    B: Clone
[src]

impl<'a, B> Debug for PipelineLayoutDescriptor<'a, B> where
    B: Clone + Debug
[src]

impl<'de, 'a, B> Deserialize<'de> for PipelineLayoutDescriptor<'a, B> where
    B: Clone + Deserialize<'de>, 
[src]

impl<'a, B> Eq for PipelineLayoutDescriptor<'a, B> where
    B: Clone + Eq
[src]

impl<'a, B> Hash for PipelineLayoutDescriptor<'a, B> where
    B: Clone + Hash
[src]

impl<'a, B> PartialEq<PipelineLayoutDescriptor<'a, B>> for PipelineLayoutDescriptor<'a, B> where
    B: Clone + PartialEq<B>, 
[src]

impl<'a, B> Serialize for PipelineLayoutDescriptor<'a, B> where
    B: Clone + Serialize
[src]

Auto Trait Implementations

impl<'a, B> RefUnwindSafe for PipelineLayoutDescriptor<'a, B> where
    B: RefUnwindSafe

impl<'a, B> Send for PipelineLayoutDescriptor<'a, B> where
    B: Send + Sync

impl<'a, B> Sync for PipelineLayoutDescriptor<'a, B> where
    B: Sync

impl<'a, B> Unpin for PipelineLayoutDescriptor<'a, B> where
    B: Unpin

impl<'a, B> UnwindSafe for PipelineLayoutDescriptor<'a, B> where
    B: RefUnwindSafe + UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.