Struct luminance::texture::Dim3
[−]
[src]
pub struct Dim3;
3D dimension.
Trait Implementations
impl Clone for Dim3
[src]
fn clone(&self) -> Dim3
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Copy for Dim3
[src]
impl Debug for Dim3
[src]
impl Dimensionable for Dim3
[src]
type Size = (u32, u32, u32)
type Offset = (u32, u32, u32)
fn dim() -> Dim
Dimension.
fn width(size: Self::Size) -> u32
Width of the associated Size
.
fn height(size: Self::Size) -> u32
Height of the associated Size
. If it doesn’t have one, set it to 1.
fn depth(size: Self::Size) -> u32
Depth of the associated Size
. If it doesn’t have one, set it to 1.
fn x_offset(off: Self::Offset) -> u32
X offset.
fn y_offset(off: Self::Offset) -> u32
Y offset. If it doesn’t have one, set it to 0.
fn z_offset(off: Self::Offset) -> u32
Z offset. If it doesn’t have one, set it to 0.
fn zero_offset() -> Self::Offset
Zero offset.