[][src]Struct wgpu::PushConstantRange

pub struct PushConstantRange {
    pub stages: ShaderStage,
    pub range: Range<u32>,
}

A range of push constant memory to pass to a shader stage.

Fields

stages: ShaderStage

Stage push constant range is visible from. Each stage can only be served by at most one range. One range can serve multiple stages however.

range: Range<u32>

Range in push constant memory to use for the stage. Must be less than Limits::max_push_constant_size. Start and end must be aligned to the 4s.

Implementations

impl PushConstantRange[src]

pub fn new(stages: ShaderStage, range: Range<u32>) -> PushConstantRange[src]

Trait Implementations

impl Clone for PushConstantRange[src]

impl Debug for PushConstantRange[src]

impl<'de> Deserialize<'de> for PushConstantRange[src]

impl Eq for PushConstantRange[src]

impl Hash for PushConstantRange[src]

impl PartialEq<PushConstantRange> for PushConstantRange[src]

impl Serialize for PushConstantRange[src]

Auto Trait Implementations

impl RefUnwindSafe for PushConstantRange

impl Send for PushConstantRange

impl Sync for PushConstantRange

impl Unpin for PushConstantRange

impl UnwindSafe for PushConstantRange

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.