struct
TextureCreateInformation
Descriptor structure used for initialization of a Texture.
Public
Constructors
TextureCreateInformation
TextureCreateInformation
TextureCreateInformation
Methods
staticCreateFromPixelData
Initializes the structure so that is creates a texture that can fit the provided pixel data.
Fields
InitialData
Name
Optional name of the texture.
Used primarily for easier debugging.
Width
Width of the texture in pixels.
Height
Height of the texture in pixels.
Depth
Depth of the texture in pixels (Must be 1 for 2D textures).
MipMapCount
Number of mip-maps the texture has.
This number excludes the full resolution map.
Usage
Describes how the caller plans on using the texture in the pipeline.
UseHardwareSRGB
If true the texture data is assumed to be in SRGB space and will be converted back to linear space when sampled on GPU.
SampleCount
Number of samples per pixel.
Set to 1 or 0 to use the default of a single sample per pixel.
ArraySliceCount
Number of texture slices to create if creating a texture array.
Ignored for 3D textures.