|
static bool | IsIdentityComponentMapping (const xiiGALTextureComponentMapping &mapping) |
| Returns true if all components of the xiiGALTextureComponentMapping are xiiGALTextureComponentSwizzle::Identity.
|
|
static const xiiGALResourceFormatDescription & | GetResourceFormatProperties (xiiEnum< xiiGALResourceFormat > format) |
| This returns the basic texture information for a particular 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) |
|
static xiiUInt64 | GetStagingTextureLocationOffset (const xiiGALTextureCreationDescription &textureDescription, xiiUInt32 uiArraySlice, xiiUInt32 uiMipLevel, xiiUInt32 uiAlignment, xiiUInt32 uiLocationX, xiiUInt32 uiLocationY, xiiUInt32 uiLocationZ) |
| Returns an offset from the beginning of the buffer backing a staging texture to the specified location within the given subresource.
|
|
static XII_ALWAYS_INLINE xiiUInt64 | GetStagingTextureSubresourceOffset (const xiiGALTextureCreationDescription &textureDescription, xiiUInt32 uiArraySlice, xiiUInt32 uiMipLevel, xiiUInt32 uiAlignment) |
| Returns an offset from the beginning of the buffer backing a staging texture to the given subresource. Texels within subresources are assumed to be tightly packed. There is no padding except between whole subresources.
|
|
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) |
| Copies texture subresource data on the CPU.
|
|
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) |
| This returns the default texture view type for a source format and the view type that are matched with the bind flags.
|
|
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.
|
|