|
| static bool | IsIdentityComponentMapping (const xiiGALTextureComponentMapping &mapping) |
| | Returns true if all components of the xiiGALTextureComponentMapping are xiiGALTextureComponentSwizzle::Identity.
|
| static const xiiGALResourceFormatDescription & | GetResourceFormatProperties (xiiEnum< xiiGALResourceFormat > format) |
| static const xiiGALMultiPlanarFormatDescription & | GetMultiPlanarFormatProperties (xiiEnum< xiiGALResourceFormat > format) |
|
static XII_ALWAYS_INLINE bool | IsCompressed (xiiEnum< xiiGALResourceFormat > format) |
| | Returns true if the given format is a multi-planar format.
|
|
static XII_ALWAYS_INLINE xiiUInt32 | GetComponentCount (xiiEnum< xiiGALResourceFormat > format) |
| | Returns the number of components for a given texture format.
|
|
static XII_ALWAYS_INLINE xiiUInt32 | GetBitsPerComponent (xiiEnum< xiiGALResourceFormat > format, xiiUInt32 uiPlaneIndex=0) |
| | Returns the bits per component for a given texture format.
|
|
static XII_ALWAYS_INLINE xiiUInt32 | GetBytesPerBlock (xiiEnum< xiiGALResourceFormat > format, xiiUInt32 uiPlaneIndex=0) |
| | Returns the bytes per block for a given texture format. For most formats, this is equal to the bytes per pixel. For compressed formats, this is the total number of bytes in a compression block.
|
|
static XII_ALWAYS_INLINE xiiUInt32 | GetBitsPerBlock (xiiEnum< xiiGALResourceFormat > format, xiiUInt32 uiPlaneIndex=0) |
| | Returns the bits per block for a given texture format. For most formats, this is equal to the bits per pixel. For compressed formats, this is the total number of bits in a compression block.
|
|
static XII_ALWAYS_INLINE xiiUInt32 | GetBitsPerPixel (xiiEnum< xiiGALResourceFormat > format) |
| | Returns the bits per pixel for a given texture format. For compressed formats, this is the average bits per pixel across a block.
|
|
static XII_ALWAYS_INLINE float | GetExactBitsPerPixel (xiiEnum< xiiGALResourceFormat > format) |
| | Returns the exact bits per pixel for a given texture format. For compressed formats, this may be a fractional value.
|
|
static XII_ALWAYS_INLINE xiiUInt32 | GetBlockWidth (xiiEnum< xiiGALResourceFormat > format, xiiUInt32 uiPlaneIndex=0) |
| | Returns the block width for a given texture format. For most formats, this is 1. For compressed formats, this may be greater than 1.
|
|
static XII_ALWAYS_INLINE xiiUInt32 | GetBlockHeight (xiiEnum< xiiGALResourceFormat > format, xiiUInt32 uiPlaneIndex=0) |
| | Returns the block height for a given texture format. For most formats, this is 1. For compressed formats, this may be greater than 1.
|
|
static XII_ALWAYS_INLINE xiiUInt32 | GetBlockDepth (xiiEnum< xiiGALResourceFormat > format, xiiUInt32 uiPlaneIndex=0) |
| | Returns the block depth for a given texture format. For most formats, this is 1. For 3D textures, this may be greater than 1.
|
|
static XII_ALWAYS_INLINE bool | RequiresFirstLevelBlockAlignment (xiiEnum< xiiGALResourceFormat > format) |
| | Returns true if the format requires first-level block alignment (i.e., if the block width or height is greater than 1).
|
|
static XII_ALWAYS_INLINE xiiEnum< xiiGALResourceFormat > | GetPlaneSubFormat (xiiEnum< xiiGALResourceFormat > format, xiiUInt32 uiPlaneIndex) |
| | Returns the sub-format for a given multi-planar texture format and plane index.
|
|
static XII_ALWAYS_INLINE xiiEnum< xiiGALResourceFormatComponentType > | GetComponentType (xiiEnum< xiiGALResourceFormat > format) |
| | Returns the component type for a given texture format.
|
| static const xiiGALSparseTextureProperties | GetSparseTextureProperties (xiiEnum< xiiGALResourceFormat > format, xiiEnum< xiiGALResourceDimension > dimension, xiiUInt32 uiSampleCount) |
| | This returns the sparse texture format information for the given texture format, resource dimension and sample count.
|
|
static xiiVec3U32 | GetMipLevelSize (xiiUInt32 uiMipLevelSize, const xiiGALTextureCreationDescription &textureDescription) |
| | This returns the mip level size of a given texture. This is typically used when retrieving the frame buffer size for a particular texture.
|
|
static xiiUInt32 | GetMipSize (xiiUInt32 uiSize, xiiUInt32 uiMipLevel) |
| | This returns the mip size for a given mip level.
|
|
static xiiGALMipLevelProperties | GetMipLevelProperties (const xiiGALTextureCreationDescription &textureDescription, xiiUInt32 uiMipLevel) |
| | This returns the mip level properties for a given texture and mip level.
|
|
static xiiUInt32 | GetMipLevelCount (const xiiGALTextureCreationDescription &textureDescription) |
| | This returns the number of mip levels for a given texture.
|
| static xiiUInt64 | GetStagingTextureLocationOffset (const xiiGALTextureCreationDescription &textureDescription, xiiUInt32 uiArraySlice, xiiUInt32 uiMipLevel, xiiUInt32 uiAlignment, xiiUInt32 uiLocationX, xiiUInt32 uiLocationY, xiiUInt32 uiLocationZ) |
| static XII_ALWAYS_INLINE xiiUInt64 | GetStagingTextureSubresourceOffset (const xiiGALTextureCreationDescription &textureDescription, xiiUInt32 uiArraySlice, xiiUInt32 uiMipLevel, xiiUInt32 uiAlignment) |
|
static xiiGALBufferToTextureCopyDescription | GetBufferToTextureCopyDescription (xiiGALResourceFormat::Enum format, const xiiBoundingBoxU32 ®ion, xiiUInt32 uiRowStrideAlignment) |
| | Computes the information required to perform a copy operation between a buffer and a texture.
|
| static void | CopyTextureSubresource (const xiiGALTextureSubResourceData &sourceSubresource, xiiUInt32 uiRowCount, xiiUInt32 uiDepthSliceCount, xiiUInt64 uiRowSize, void *pDestinationData, xiiUInt64 uiDestinationRowStride, xiiUInt64 uiDestinationDepthStride) |
|
static XII_ALWAYS_INLINE xiiUInt64 | GetStagingTextureDataSize (const xiiGALTextureCreationDescription &textureDescription, xiiUInt32 uiAlignment=4U) |
| | Returns the total memory size required to store the staging texture data.
|
| static xiiEnum< xiiGALResourceFormat > | GetDefaultTextureViewFormat (xiiEnum< xiiGALResourceFormat > format, xiiEnum< xiiGALTextureViewType > viewType, xiiBitflags< xiiGALBindFlags > bindFlags) |
|
static xiiGALTextureCreationDescription | GetDefaultTexture1DDescription () noexcept |
| | Returns the default texture 1D creation description.
|
|
static xiiGALTextureCreationDescription | GetDefaultTexture2DDescription () noexcept |
| | Returns the default texture 2D creation description.
|
|
static xiiGALTextureCreationDescription | GetDefaultTexture3DDescription () noexcept |
| | Returns the default texture 3D creation description.
|
|
static xiiGALTextureCreationDescription | GetDefaultTextureCubeDescription () noexcept |
| | Returns the default texture cube creation description.
|
|
static XII_ALWAYS_INLINE xiiUInt32 | GetSubResourceCount (const xiiGALTextureCreationDescription &description) noexcept |
| | Returns the total number of subresources. A volume mip includes all of its depth slices.
|
|
static XII_ALWAYS_INLINE xiiUInt32 | GetRequiredRowPitch (const xiiGALTextureCreationDescription &description, xiiUInt32 uiMipLevel) |
| | Returns the required row pitch for the given texture description and mip level.
|
|
static XII_ALWAYS_INLINE xiiUInt32 | GetRequiredSlicePitch (const xiiGALTextureCreationDescription &description, xiiUInt32 uiMipLevel) |
| | Returns the required slice pitch for the given texture description and mip level.
|
|
static xiiGALTextureData | GetZeroMemoryInitialData (const xiiGALTextureCreationDescription description, xiiHybridArray< xiiGALTextureSubResourceData, 2U > &out_subresourceData, xiiDynamicArray< xiiUInt8 > &out_Data) |
| | Fills the out_subresourceData array with zero-initialized data pointers for all subresources of the given texture description.
|
|
static void | CopySubresourceToMemory (const xiiGALTextureCreationDescription &description, const xiiGALMappedTextureSubresource &subresourceData, const xiiGALTextureMipLevelData &mipLevelData, xiiArrayPtr< xiiUInt8 > pTargetData, xiiUInt32 uiTargetRowStride) |