|
Foundation
|
#include <Texture.hpp>
Public Member Functions | |
| FTexture (Allocator *alloc) | |
| void | Initialize (RHIResourceFormat format, RHITextureDimension dimension, uint32_t width, uint32_t height=1, uint32_t depth=1, uint32_t mipCount=1, uint32_t layerCount=1) |
| bool | IsValid () const |
| Span< unsigned char > | GetSubresource (uint32_t mipLevel=0, uint32_t arrayLayer=0) const |
| void | GenerateMips () |
| FTexture | EncodeBC7 (Allocator *alloc=GLOBAL_ALLOC) const |
Public Member Functions inherited from FTextureHeader | |
| bool | IsValid () const |
| uint32_t | GetWidth () const |
| uint32_t | GetHeight () const |
| uint32_t | GetDepth () const |
| RHITextureDimension | GetDimension () const |
| RHITextureDimension | GetViewDimension () const |
| uint32_t | GetNumLayers () const |
| uint32_t | GetNumMips () const |
| RHIResourceFormat | GetFormat () const |
| uint32_t | GetBlockSize () const |
| uint32_t | GetBpp () const |
| uint32_t | GetSize () const |
| size_t | GetSubresourceSize (uint32_t layer, uint32_t mip) const |
| RHIExtent3D | GetMipExtent (uint32_t mipLevel) const |
| RHITextureDesc | GetDesc () const |
Public Attributes | |
| Vector< unsigned char > | bytes |
Public Attributes inherited from FTextureHeader | |
| uint32_t | magic {DDS_MAGIC} |
| DDS_HEADER | header {} |
| DDS_HEADER_DXT10 | header10 {} |
Additional Inherited Members | |
Static Public Member Functions inherited from FTextureHeader | |
| static uint64_t | CalculateTextureImageSize (uint32_t width, uint32_t height, uint32_t depth, uint32_t mipLevels, uint32_t blockSize, uint32_t blockDim) |
| FTexture::FTexture | ( | Allocator * | alloc | ) |
| FTexture FTexture::EncodeBC7 | ( | Allocator * | alloc = GLOBAL_ALLOC | ) | const |
Encodes the current, uncompressed R8G8B8A8 texture into BC7 format
| void FTexture::GenerateMips | ( | ) |
Generates full mipmap chain for uncompressed RGBA8 or RGBA32F textures.
| Span< unsigned char > FTexture::GetSubresource | ( | uint32_t | mipLevel = 0, |
| uint32_t | arrayLayer = 0 |
||
| ) | const |
| void FTexture::Initialize | ( | RHIResourceFormat | format, |
| RHITextureDimension | dimension, | ||
| uint32_t | width, | ||
| uint32_t | height = 1, |
||
| uint32_t | depth = 1, |
||
| uint32_t | mipCount = 1, |
||
| uint32_t | layerCount = 1 |
||
| ) |
|
inline |
|
mutable |