Struct bgfx_rs::static_lib::CreateTexture3DArgs
source · pub struct CreateTexture3DArgs {
pub flags: u64,
pub mem: Option<Memory>,
}
Fields§
§flags: u64
Texture creation (see TextureFlags.), and sampler (see SamplerFlags) flags. Default texture sampling mode is linear, and wrap mode is repeat.
- [SamplerFlags::[U/V/W]_[MIRROR/CLAMP]] - Mirror or clamp to edge wrap mode.
- [SamplerFlags::[MIN/MAG/MIP]_[POINT/ANISOTROPIC]] - Point or anisotropic sampling.
mem: Option<Memory>
Texture data. If _mem
is non-NULL, created texture will be immutable. If
_mem
is NULL content of the texture is uninitialized. When _numLayers
is more than
1, expected memory layout is texture and all mips together for each array element.
Trait Implementations§
source§impl Default for CreateTexture3DArgs
impl Default for CreateTexture3DArgs
source§fn default() -> CreateTexture3DArgs
fn default() -> CreateTexture3DArgs
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CreateTexture3DArgs
impl RefUnwindSafe for CreateTexture3DArgs
impl !Send for CreateTexture3DArgs
impl !Sync for CreateTexture3DArgs
impl Unpin for CreateTexture3DArgs
impl UnwindSafe for CreateTexture3DArgs
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