class MemTextureDataBlock

Data block loader for memory based texture load.

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

Construction

Return type

Description

MemTextureDataBlock (char* pMemory)

Methods

Return type

Description

bool

LoadTextureData ( std::experimental::filesystem::path& textureFile, float alphaThreshold, TextureDesc & texDesc )
As the MemTextureDataBlock is backed by memory already, LoadTextureData does nothing and should not be called. This function will assert if called.

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.

Detailed description

Data block loader for memory based texture load.

Methods

LoadTextureData

Copied!

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

As the MemTextureDataBlock is backed by memory already, LoadTextureData does nothing and should not be called. This function will assert if called.


CopyTextureData

Copied!

virtual 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.