This documents an old version of bs::framework. Click here to see the latest release.
TEXTURE_DESC Struct Reference

Description

Descriptor structure used for initialization of a Texture.

Fields

TextureType type = TEX_TYPE_2D
 Type of the texture. More...
 
PixelFormat format = PF_RGBA8
 Format of pixels in the texture. More...
 
UINT32 width = 1
 Width of the texture in pixels. More...
 
UINT32 height = 1
 Height of the texture in pixels. More...
 
UINT32 depth = 1
 Depth of the texture in pixels (Must be 1 for 2D textures). More...
 
UINT32 numMips = 0
 Number of mip-maps the texture has. More...
 
INT32 usage = TU_DEFAULT
 Describes how the caller plans on using the texture in the pipeline. More...
 
bool hwGamma = false
 If true the texture data is assumed to have been gamma corrected and will be converted back to linear space when sampled on GPU.
 
UINT32 numSamples = 0
 Number of samples per pixel. More...
 
UINT32 numArraySlices = 1
 Number of texture slices to create if creating a texture array. More...
 

Member Data Documentation

◆ depth

UINT32 depth = 1

Depth of the texture in pixels (Must be 1 for 2D textures).

◆ format

Format of pixels in the texture.

◆ height

UINT32 height = 1

Height of the texture in pixels.

◆ numArraySlices

UINT32 numArraySlices = 1

Number of texture slices to create if creating a texture array.

Ignored for 3D textures.

◆ numMips

UINT32 numMips = 0

Number of mip-maps the texture has.

This number excludes the full resolution map.

◆ numSamples

UINT32 numSamples = 0

Number of samples per pixel.

Set to 1 or 0 to use the default of a single sample per pixel.

◆ type

Type of the texture.

◆ usage

INT32 usage = TU_DEFAULT

Describes how the caller plans on using the texture in the pipeline.

◆ width

UINT32 width = 1

Width of the texture in pixels.