Luna::RHI::TextureDesc
Describes one texture resource.
struct Luna::RHI::TextureDesc
Member objects
-
The type of the texture.
-
The pixel format of the texture.
-
The width of the texture.
-
The height of the texture. This should always be 1 for 1D textures.
-
The depth of the texture. This should always be 1 for 1D and 2D textures.
-
The texture array size, specify 1 if this is not a texture array. This should always be 1 for 3D textures. This should be times of 6 of
usages
containsTextureUsageFlag::cube
. -
The number of mip-map slices. Specify 0 tells the system to create full mip-map chain for the resource.
-
The sample count per pixel for multi-sample texture resource, specify 1 if the multi-sample is disabled for this texture. This should always be 1 for 1D and 3D textures.
-
A combination of
TextureUsageFlag
flags to indicate all possible usages of this texture. -
The resource flags.