Struct sierra::Spirv[][src]

pub struct Spirv { /* fields omitted */ }

Valid SPIR-V shader code.

Implementations

impl Spirv[src]

pub fn new(bytes: impl Into<Box<[u8]>>) -> Self[src]

Wraps raw bytes that must contain valid SPIR-V shader code.

FIXME: Actually check validity.

Trait Implementations

impl Clone for Spirv[src]

impl Debug for Spirv[src]

impl Eq for Spirv[src]

impl From<Spirv> for ShaderModuleInfo[src]

impl PartialEq<Spirv> for Spirv[src]

impl StructuralEq for Spirv[src]

impl StructuralPartialEq for Spirv[src]

Auto Trait Implementations

impl RefUnwindSafe for Spirv

impl Send for Spirv

impl Sync for Spirv

impl Unpin for Spirv

impl UnwindSafe for Spirv

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> From<T> for T[src]

impl<T> Instrument 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.