struct
TextureSurface
References a subset of surfaces within a texture.
Public
Constructors
TextureSurface
TextureSurface(u32 mipLevel = 0, u32 mipLevelCount = 1, u32 face = 0, u32 faceCount = 1, bool isBoundAs2DArray = false)
Fields
MipLevel
u32 MipLevel
First mip level to reference.
MipLevelCount
u32 MipLevelCount
Number of mip levels to reference.
Must be greater than zero.
Face
u32 Face
First face to reference.
Face can represent a single cubemap face, or a single array entry in a texture array. If cubemaps are laid out in a texture array then every six sequential faces represent a single array entry.
FaceCount
u32 FaceCount
Number of faces to reference, if the texture has more than one.
IsBoundAs2DArray
bool IsBoundAs2DArray
Forces a cubemap or a 3D texture to be bound as a 2D texture array.