[][src]Struct emu_core::compile::Spirv

pub struct Spirv<P: BorrowMut<[u32]>> {
    pub params: DeviceFnMutParams,
    pub name: String,
    pub code: P,
}

A wrapper for SPIR-V bytecode

The wrapper adds a few important details including parameters and the name of the relevant entry point in the bytecode. You can construct a Spirv using a SpirvBuilder.

Fields

params: DeviceFnMutParamsname: Stringcode: P

Trait Implementations

impl<P: Hash + BorrowMut<[u32]>> CompileToSpirv<Spirv<P>, P> for SpirvCompile[src]

impl<P: Hash + BorrowMut<[u32]>> Hash for Spirv<P>[src]

Auto Trait Implementations

impl<P> RefUnwindSafe for Spirv<P> where
    P: RefUnwindSafe

impl<P> Send for Spirv<P> where
    P: Send

impl<P> Sync for Spirv<P> where
    P: Sync

impl<P> Unpin for Spirv<P> where
    P: Unpin

impl<P> UnwindSafe for Spirv<P> where
    P: UnwindSafe

Blanket Implementations

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

impl<T, U> AsDeviceBoxed<T> for U where
    T: AsBytes + ?Sized,
    U: Borrow<T>, 
[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, U> Into<U> for T where
    U: From<T>, 
[src]

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.