Struct rafx_api::RafxShaderResource[][src]

pub struct RafxShaderResource {
    pub resource_type: RafxResourceType,
    pub set_index: u32,
    pub binding: u32,
    pub element_count: u32,
    pub size_in_bytes: u32,
    pub used_in_shader_stages: RafxShaderStageFlags,
    pub name: Option<String>,
}

A data source within a shader. Often a descriptor or push constant.

Fields

resource_type: RafxResourceTypeset_index: u32binding: u32element_count: u32size_in_bytes: u32used_in_shader_stages: RafxShaderStageFlagsname: Option<String>

Implementations

impl RafxShaderResource[src]

pub fn element_count_normalized(&self) -> u32[src]

pub fn validate(&self) -> RafxResult<()>[src]

Trait Implementations

impl Clone for RafxShaderResource[src]

impl Debug for RafxShaderResource[src]

impl Default for RafxShaderResource[src]

impl Eq for RafxShaderResource[src]

impl Hash for RafxShaderResource[src]

impl PartialEq<RafxShaderResource> for RafxShaderResource[src]

impl StructuralEq for RafxShaderResource[src]

impl StructuralPartialEq for RafxShaderResource[src]

Auto Trait Implementations

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> Downcast for T where
    T: Any

impl<T> DowncastSync for T where
    T: Send + Sync + Any

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

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

impl<T> Resource for T where
    T: Downcast + Send + Sync
[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.