pub struct Texture { /* private fields */ }

Implementations

  • mem: DDS, KTX or PVR texture binary data.
  • 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.
  • skip: Skip top level mips when parsing texture.
  • info: When non-NULL is specified it returns parsed texture information.
  • width: Width.
  • height: Height.
  • 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.
  • 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.
  • 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.
  • 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.
  • size: Cube side size.
  • 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.
  • 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.
  • handle: Texture handle.
  • layer: Layer in texture array.
  • mip: Mip level.
  • x: X offset in texture.
  • y: Y offset in texture.
  • width: Width of texture block.
  • height: Height of texture block.
  • mem: Texture update data.
  • pitch: Pitch of input image (bytes). When _pitch is set to UINT16_MAX, it will be calculated internally based on _width.
  • handle: Texture handle.
  • mip: Mip level.
  • x: X offset in texture.
  • y: Y offset in texture.
  • z: Z offset in texture.
  • width: Width of texture block.
  • height: Height of texture block.
  • depth: Depth of texture block.
  • mem: Texture update data.
  • handle: Texture handle.

  • layer: Layer in texture array.

  • side: Cubemap side [CubeMapFlags::_<X, Y or Z>], where 0 is +X, 1 is -X, 2 is +Y, 3 is -Y, 4 is +Z, and 5 is -Z.

               +----------+
               |-z       2|
               | ^  +y    |
               | |        |    Unfolded cube:
               | +---->+x |
    +----------+----------+----------+----------+
    |+y       1|+y       4|+y       0|+y       5|
    | ^  -x    | ^  +z    | ^  +x    | ^  -z    |
    | |        | |        | |        | |        |
    | +---->+z | +---->+x | +---->-z | +---->-x |
    +----------+----------+----------+----------+
               |+z       3|
               | ^  -y    |
               | |        |
               | +---->+x |
               +----------+
  • mip: Mip level.

  • x: X offset in texture.

  • y: Y offset in texture.

  • width: Width of texture block.

  • height: Height of texture block.

  • mem: Texture update data.

  • pitch: Pitch of input image (bytes). When _pitch is set to UINT16_MAX, it will be calculated internally based on _width.

  • handle: Texture handle.
  • name: Texture name.
  • len: Texture name length (if length is INT32_MAX, it’s expected that _name is zero terminated string.
  • handle: Frame buffer handle.
  • attachment:

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.