class TextureDataBlock

Base data block representation for loading various texture types.

File location: framework/cauldron/framework/inc/core/loaders/textureloader.h

Construction

Return type

Description

TextureDataBlock ()

Methods

Return type

Description

bool

LoadTextureData ( std::experimental::filesystem::path& textureFile, float alphaThreshold, TextureDesc & texDesc ) = 0
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 ) = 0
Copies the texture data to the resource’s backing memory.

Detailed description

Base data block representation for loading various texture types.

Methods

LoadTextureData

Copied!

virtual bool LoadTextureData (
    std::experimental::filesystem::path& textureFile,
    float alphaThreshold,
    TextureDesc & texDesc
) = 0

Loads the texture data to memory according to the DataBlock type.


CopyTextureData

Copied!

virtual void CopyTextureData (
    void* pDest,
    uint32_t stride,
    uint32_t widthStride,
    uint32_t height,
    uint32_t sliceOffset
) = 0

Copies the texture data to the resource’s backing memory.