pub fn create_texture_2d_scaled(
    ratio: BackbufferRatio,
    has_mips: bool,
    num_layers: u16,
    format: TextureFormat,
    flags: u64
) -> Texture
Expand description
  • ratio: Texture size in respect to back-buffer size. See: BackbufferRatio.
  • has_mips: Indicates that texture contains full mip-map chain.
  • num_layers: Number of layers in texture array. Must be 1 if caps [CapsFlags::TEXTURE_2D_ARRAY] flag is not set.
  • 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.