TextureViewDesc struct
Texture view description.
Contents
- Reference
Base classes
- struct DeviceObjectAttribs
- Describes common device object attributes.
Public functions
- auto operator==(const TextureViewDesc& RHS) const -> bool
- Tests if two structures are equivalent.
Public variables
-
TEXTURE_
VIEW_ TYPE ViewType - Describes the texture view type, see Diligent::
TEXTURE_VIEW_TYPE for details. -
RESOURCE_
DIMENSION TextureDim - View interpretation of the original texture. For instance, one slice of a 2D texture array can be viewed as a 2D texture. See Diligent::
RESOURCE_DIMENSION for a list of texture types. If default value Diligent:: RESOURCE_DIM_UNDEFINED is provided, the view type will match the type of the referenced texture. -
TEXTURE_
FORMAT Format - View format. If default value Diligent::
TEX_FORMAT_UNKNOWN is provided, the view format will match the referenced texture format. - Uint32 MostDetailedMip
- Most detailed mip level to use.
- Uint32 NumMipLevels
- Total number of mip levels for the view of the texture. Render target and depth stencil views can address only one mip level. If 0 is provided, then for a shader resource view all mip levels will be referenced, and for a render target or a depth stencil view, one mip level will be referenced.
- Uint32 FirstArraySlice
- For a texture array, first array slice to address in the view.
- Uint32 FirstDepthSlice
- For a 3D texture, first depth slice to address the view.
- Uint32 NumArraySlices
- For a texture array, number of array slices to address in the view. Set to 0 to address all array slices.
- Uint32 NumDepthSlices
- For a 3D texture, number of depth slices to address in the view Set to 0 to address all depth slices.
-
UAV_
ACCESS_ FLAG AccessFlags - For an unordered access view, allowed access flags. See Diligent::
UAV_ACCESS_FLAG for details. -
TEXTURE_
VIEW_ FLAGS Flags - Texture view flags, see Diligent::
TEXTURE_VIEW_FLAGS.
Function documentation
bool Diligent:: TextureViewDesc:: operator==(const TextureViewDesc& RHS) const
Tests if two structures are equivalent.
| Parameters | |
|---|---|
| RHS in | - reference to the structure to perform comparison with |
| Returns |
|