pub struct StencilConfig {
pub name: String,
pub tile_width: u32,
pub tile_height: u32,
pub halo: u32,
pub use_shared_memory: bool,
}Expand description
Configuration for stencil kernel generation.
Fields§
§name: StringKernel name.
tile_width: u32Tile width (workgroup size X).
tile_height: u32Tile height (workgroup size Y).
halo: u32Halo size for neighbor access.
Whether to use shared memory for the tile.
Implementations§
Source§impl StencilConfig
impl StencilConfig
Sourcepub fn with_tile_size(self, width: u32, height: u32) -> Self
pub fn with_tile_size(self, width: u32, height: u32) -> Self
Set tile size.
Disable shared memory usage.
Sourcepub fn buffer_width(&self) -> u32
pub fn buffer_width(&self) -> u32
Get the buffer width including halo.
Sourcepub fn buffer_height(&self) -> u32
pub fn buffer_height(&self) -> u32
Get the buffer height including halo.
Sourcepub fn workgroup_size_annotation(&self) -> String
pub fn workgroup_size_annotation(&self) -> String
Get the workgroup size annotation.
Trait Implementations§
Source§impl Clone for StencilConfig
impl Clone for StencilConfig
Source§fn clone(&self) -> StencilConfig
fn clone(&self) -> StencilConfig
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 moreAuto Trait Implementations§
impl Freeze for StencilConfig
impl RefUnwindSafe for StencilConfig
impl Send for StencilConfig
impl Sync for StencilConfig
impl Unpin for StencilConfig
impl UnwindSafe for StencilConfig
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