pub struct WGSLComputeKernelParams {
pub name: String,
pub wg_x: u32,
pub wg_y: u32,
pub wg_z: u32,
pub use_local_id: bool,
pub use_workgroup_id: bool,
pub use_num_workgroups: bool,
}Expand description
Parameters for a compute kernel.
Fields§
§name: StringKernel entry-point name.
wg_x: u32Workgroup X dimension.
wg_y: u32Workgroup Y dimension.
wg_z: u32Workgroup Z dimension.
use_local_id: boolWhether to include local_invocation_id builtin parameter.
use_workgroup_id: boolWhether to include workgroup_id builtin parameter.
use_num_workgroups: boolWhether to include num_workgroups builtin parameter.
Trait Implementations§
Source§impl Clone for WGSLComputeKernelParams
impl Clone for WGSLComputeKernelParams
Source§fn clone(&self) -> WGSLComputeKernelParams
fn clone(&self) -> WGSLComputeKernelParams
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WGSLComputeKernelParams
impl Debug for WGSLComputeKernelParams
Auto Trait Implementations§
impl Freeze for WGSLComputeKernelParams
impl RefUnwindSafe for WGSLComputeKernelParams
impl Send for WGSLComputeKernelParams
impl Sync for WGSLComputeKernelParams
impl Unpin for WGSLComputeKernelParams
impl UnsafeUnpin for WGSLComputeKernelParams
impl UnwindSafe for WGSLComputeKernelParams
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more