[−][src]Struct emu_core::device::DeviceFnMutParams
Describes the parameters that can be passed to a DeviceFnMut
This is cheap to construct and something you can safely clone multiple times.
See ParamsBuilder
for a convenience builder of DeviceFnMutParams
.
DeviceFnMutParams
encapsulates a map from each set number to a map from each binding in the set to
a binding layout. The binding layout contains both the wgpu::BindGroupLayoutEntry
and an ArgAndParamInfo
storing information
for each parameter.
Looking into WebGPU docs and Emu source code is probably the best way to figure out how to work with the WebGPU
data structures encapsulated by DeviceFnMutParams
.
Methods
impl DeviceFnMutParams
[src]
pub fn new(num_params: usize) -> Self
[src]
Constructs a set of parameters where each parameter is mutable
Trait Implementations
impl Clone for DeviceFnMutParams
[src]
fn clone(&self) -> DeviceFnMutParams
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl From<DeviceFnMutParams> for HashMap<u32, HashMap<u32, (BindGroupLayoutEntry, ArgAndParamInfo)>>
[src]
fn from(
original: DeviceFnMutParams
) -> HashMap<u32, HashMap<u32, (BindGroupLayoutEntry, ArgAndParamInfo)>>
[src]
original: DeviceFnMutParams
) -> HashMap<u32, HashMap<u32, (BindGroupLayoutEntry, ArgAndParamInfo)>>
impl From<HashMap<u32, HashMap<u32, (BindGroupLayoutEntry, ArgAndParamInfo), RandomState>, RandomState>> for DeviceFnMutParams
[src]
fn from(
original: HashMap<u32, HashMap<u32, (BindGroupLayoutEntry, ArgAndParamInfo)>>
) -> DeviceFnMutParams
[src]
original: HashMap<u32, HashMap<u32, (BindGroupLayoutEntry, ArgAndParamInfo)>>
) -> DeviceFnMutParams
impl Hash for DeviceFnMutParams
[src]
Auto Trait Implementations
impl RefUnwindSafe for DeviceFnMutParams
impl Send for DeviceFnMutParams
impl Sync for DeviceFnMutParams
impl Unpin for DeviceFnMutParams
impl UnwindSafe for DeviceFnMutParams
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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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>,