Struct bgfx_rs::static_lib::CreateTextureCubeArgs
source · pub struct CreateTextureCubeArgs {
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 CreateTextureCubeArgs
impl Default for CreateTextureCubeArgs
source§fn default() -> CreateTextureCubeArgs
fn default() -> CreateTextureCubeArgs
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CreateTextureCubeArgs
impl RefUnwindSafe for CreateTextureCubeArgs
impl !Send for CreateTextureCubeArgs
impl !Sync for CreateTextureCubeArgs
impl Unpin for CreateTextureCubeArgs
impl UnwindSafe for CreateTextureCubeArgs
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