pub fn create_texture_3d(
    width: u16,
    height: u16,
    depth: u16,
    has_mips: bool,
    format: TextureFormat,
    params: CreateTexture3DArgs
) -> Texture
Expand description
  • width: Width.
  • height: Height.
  • depth: Depth.
  • has_mips: Indicates that texture contains full mip-map chain.
  • format: Texture format. See: TextureFormat.
  • flags: 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: 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.