class WICTextureDataBlock
Data block loader for STB image loads.
File location: framework/cauldron/framework/inc/core/loaders/textureloader.h
Construction
Return type |
Description |
---|---|
WICTextureDataBlock ()
|
Methods
Return type |
Description |
---|---|
bool |
LoadTextureData ( std::experimental::filesystem::path& textureFile, float alphaThreshold, TextureDesc & texDesc )
Loads the texture data to memory according to the DataBlock type.
|
void |
CopyTextureData ( void* pDest, uint32_t stride, uint32_t widthStride, uint32_t height, uint32_t sliceOffset )
Copies the texture data to the resource’s backing memory. Will also generate mip-chain.
|
Detailed description
Data block loader for STB image loads. Textures loaded by STB loader will generate their own mip-chain and have options for alpha generation.
Methods
LoadTextureData
virtual bool LoadTextureData (
std::experimental::filesystem::path& textureFile,
float alphaThreshold,
TextureDesc & texDesc
)
Loads the texture data to memory according to the DataBlock type.
CopyTextureData
Copies the texture data to the resource’s backing memory. Will also generate mip-chain.