pub struct BlockScaledLayout { /* private fields */ }Expand description
Workaround for enums not supporting comptime, should fix that in the future
Implementations§
Source§impl BlockScaledLayout
impl BlockScaledLayout
pub fn new( shape: Coords2d, scales_layout: BatchedGlobalLayout, block_size: Coords2d, ) -> Self
pub fn __expand_new( scope: &mut Scope, shape: <Coords2d as CubeType>::ExpandType, scales_layout: <BatchedGlobalLayout as CubeType>::ExpandType, block_size: Coords2d, ) -> <Self as CubeType>::ExpandType
Trait Implementations§
Source§impl CubeType for BlockScaledLayout
impl CubeType for BlockScaledLayout
type ExpandType = BlockScaledLayoutExpand
Source§fn into_mut(scope: &mut Scope, expand: Self::ExpandType) -> Self::ExpandType
fn into_mut(scope: &mut Scope, expand: Self::ExpandType) -> Self::ExpandType
Wrapper around the init method, necessary to type inference.
Source§impl LaunchArg for BlockScaledLayout
impl LaunchArg for BlockScaledLayout
Source§type RuntimeArg<'a, R: Runtime> = BlockScaledLayoutLaunch<'a, R>
type RuntimeArg<'a, R: Runtime> = BlockScaledLayoutLaunch<'a, R>
The runtime argument for the kernel.
Source§type CompilationArg = BlockScaledLayoutCompilationArg
type CompilationArg = BlockScaledLayoutCompilationArg
Compilation argument.
fn compilation_arg<'a, R: Runtime>( runtime_arg: &Self::RuntimeArg<'a, R>, ) -> Self::CompilationArg
Source§fn expand(
arg: &Self::CompilationArg,
builder: &mut KernelBuilder,
) -> <Self as CubeType>::ExpandType
fn expand( arg: &Self::CompilationArg, builder: &mut KernelBuilder, ) -> <Self as CubeType>::ExpandType
Register an input variable during compilation that fill the KernelBuilder.
Source§fn expand_output(
arg: &Self::CompilationArg,
builder: &mut KernelBuilder,
) -> <Self as CubeType>::ExpandType
fn expand_output( arg: &Self::CompilationArg, builder: &mut KernelBuilder, ) -> <Self as CubeType>::ExpandType
Register an output variable during compilation that fill the KernelBuilder.
Auto Trait Implementations§
impl Freeze for BlockScaledLayout
impl RefUnwindSafe for BlockScaledLayout
impl Send for BlockScaledLayout
impl Sync for BlockScaledLayout
impl Unpin for BlockScaledLayout
impl UnwindSafe for BlockScaledLayout
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