XII Release 0.1.0
Loading...
Searching...
No Matches
xiiGALTextureViewCreationDescription Struct Reference

This describes the texture view creation description. More...

#include <TextureView.h>

Inheritance diagram for xiiGALTextureViewCreationDescription:
[legend]

Public Member Functions

 XII_DECLARE_POD_TYPE ()
 
- Public Member Functions inherited from xiiHashableStruct< xiiGALTextureViewCreationDescription >
constexpr xiiHashableStruct () noexcept
 Default constructor. Initializes all bytes to zero.
 
 xiiHashableStruct (const xiiHashableStruct &other) noexcept
 Bitwise copy constructor.
 
xiiHashableStructoperator= (const xiiHashableStruct &other) noexcept
 Bitwise assignment operator.
 
bool operator== (const xiiHashableStruct &other) const noexcept
 Compares equality via raw byte comparison.
 
std::strong_ordering operator<=> (const xiiHashableStruct &other) const noexcept
 Compares ordering via raw byte comparison.
 
xiiUInt32 CalculateHash () const noexcept
 Calculates a 32-bit hash from raw bytes of the struct.
 
void Clear () noexcept
 Fills all bytes with zero.
 
bool IsZero () const noexcept
 Returns true if all bytes are zero.
 

Public Attributes

xiiEnum< xiiGALTextureViewTypem_ViewType = xiiGALTextureViewType::Undefined
 Describes the texture view type. The default is Undefined.
 
xiiEnum< xiiGALResourceDimensionm_ResourceDimension = xiiGALResourceDimension::Undefined
 The view interpretation of the original texture. If default value xiiGALResourceDimension::Undefined is provided, the view type will match the type of the referenced texture.
 
xiiEnum< xiiGALResourceFormatm_Format = xiiGALResourceFormat::Unknown
 The view format. If default value xiiGALResourceFormat::Unknown is provided, the view format will match the referenced texture format.
 
xiiUInt32 m_uiMostDetailedMip = 0U
 The most detailed mip level to use. The default is 0.
 
xiiUInt32 m_uiMipLevelCount = 0U
 The 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. The default is 0.
 
xiiUInt32 m_uiFirstArrayOrDepthSlice = 0U
 For a texture array, first array slice to address in the view. For a 3D texture, first depth slice to address the view. The default is 0.
 
xiiUInt32 m_uiArrayOrDepthSlicesCount = 0U
 For a texture array, number of array slices to address in the view. For a 3D texture, number of depth slices to address in the view. Set to 0 to address all array or depth slices. The default is 0.
 
xiiBitflags< xiiGALUnorderedAccessViewFlagsm_AccessFlags = xiiGALUnorderedAccessViewFlags::Unspecified
 For an unordered access view, allowed access flags. The default is Unspecified.
 
xiiBitflags< xiiGALTextureViewFlagsm_Flags = xiiGALTextureViewFlags::None
 Texture view flags. The default is None.
 
xiiGALTextureComponentMapping m_ComponentSwizzle
 Texture component swizzle.
 

Detailed Description

This describes the texture view creation description.


The documentation for this struct was generated from the following file: