[−][src]Struct emu_core::compile::Spirv
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: DeviceFnMutParams
name: String
code: P
Trait Implementations
impl<P: Hash + BorrowMut<[u32]>> CompileToSpirv<Spirv<P>, P> for SpirvCompile
[src]
fn compile_to_spirv(src: Spirv<P>) -> Result<Spirv<P>, CompileError>
[src]
impl<P: Hash + BorrowMut<[u32]>> Hash for Spirv<P>
[src]
Auto Trait Implementations
impl<P> RefUnwindSafe for Spirv<P> where
P: RefUnwindSafe,
P: RefUnwindSafe,
impl<P> Send for Spirv<P> where
P: Send,
P: Send,
impl<P> Sync for Spirv<P> where
P: Sync,
P: Sync,
impl<P> Unpin for Spirv<P> where
P: Unpin,
P: Unpin,
impl<P> UnwindSafe for Spirv<P> where
P: UnwindSafe,
P: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T, U> AsDeviceBoxed<T> for U where
T: AsBytes + ?Sized,
U: Borrow<T>,
[src]
T: AsBytes + ?Sized,
U: Borrow<T>,
fn as_device_boxed(&Self) -> Result<DeviceBox<T>, NoDeviceError>
[src]
fn as_device_boxed_mut(&Self) -> Result<DeviceBox<T>, NoDeviceError>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,