pub struct KernelSettings {
pub mappings: Vec<InplaceMapping>,
pub cube_dim: CubeDim,
pub reading_strategy: Vec<(Id, ReadingStrategy)>,
pub kernel_name: String,
/* private fields */
}
Fields§
§mappings: Vec<InplaceMapping>
§cube_dim: CubeDim
§reading_strategy: Vec<(Id, ReadingStrategy)>
§kernel_name: String
Implementations§
Source§impl KernelSettings
impl KernelSettings
Sourcepub fn vectorize_input(
self,
position: usize,
vectorization: Vectorization,
) -> Self
pub fn vectorize_input( self, position: usize, vectorization: Vectorization, ) -> Self
Compile the shader with vectorization enabled for an input.
Sourcepub fn vectorize_output(
self,
position: usize,
vectorization: Vectorization,
) -> Self
pub fn vectorize_output( self, position: usize, vectorization: Vectorization, ) -> Self
Compile the shader with vectorization enabled for an output.
Sourcepub fn vectorization_input(&self, position: usize) -> Vectorization
pub fn vectorization_input(&self, position: usize) -> Vectorization
Fetch the vectorization for the provided input position.
Sourcepub fn vectorization_output(&self, position: usize) -> Vectorization
pub fn vectorization_output(&self, position: usize) -> Vectorization
Fetch the vectorization for the provided output position.
Sourcepub fn inplace(self, mappings: Vec<InplaceMapping>) -> Self
pub fn inplace(self, mappings: Vec<InplaceMapping>) -> Self
Compile the shader with inplace enabled by the given mapping.
Notes:
You should favor using dynamic_settings
when using fusion, since the mapping is going to
be created from the runtime information.
Sourcepub fn kernel_name<S: AsRef<str>>(self, name: S) -> Self
pub fn kernel_name<S: AsRef<str>>(self, name: S) -> Self
Set kernel name.
Trait Implementations§
Source§impl Clone for KernelSettings
impl Clone for KernelSettings
Source§fn clone(&self) -> KernelSettings
fn clone(&self) -> KernelSettings
Returns a copy 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 KernelSettings
impl Debug for KernelSettings
Source§impl Default for KernelSettings
impl Default for KernelSettings
Source§fn default() -> KernelSettings
fn default() -> KernelSettings
Returns the “default value” for a type. Read more
Source§impl Display for KernelSettings
impl Display for KernelSettings
Source§impl Hash for KernelSettings
impl Hash for KernelSettings
Source§impl PartialEq for KernelSettings
impl PartialEq for KernelSettings
impl Eq for KernelSettings
impl StructuralPartialEq for KernelSettings
Auto Trait Implementations§
impl Freeze for KernelSettings
impl RefUnwindSafe for KernelSettings
impl Send for KernelSettings
impl Sync for KernelSettings
impl Unpin for KernelSettings
impl UnwindSafe for KernelSettings
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