Loading...
Searching...
No Matches
HdStTextureCpuData Class Referenceabstract

Represents CPU data that can be stored in a HdStUvTextureObject, mostly, likely during the load phase to be committed to the GPU. More...

#include <textureCpuData.h>

Public Member Functions

virtual const HgiTextureDescGetTextureDesc () const =0
 The metadata of the texture (width, height, ...) including a pointer to the CPU data (as initialData).
 
virtual bool GetGenerateMipmaps () const =0
 Make GPU generate mipmaps.
 
virtual bool IsValid () const =0
 Are the data valid (e.g., false if file could not be found).
 

Detailed Description

Represents CPU data that can be stored in a HdStUvTextureObject, mostly, likely during the load phase to be committed to the GPU.

Definition at line 39 of file textureCpuData.h.

Member Function Documentation

◆ GetGenerateMipmaps()

virtual bool GetGenerateMipmaps ( ) const
pure virtual

Make GPU generate mipmaps.

The number of mipmaps is specified in the texture descriptor and the mipmaps are generate from the mip level 0 data.

◆ GetTextureDesc()

virtual const HgiTextureDesc & GetTextureDesc ( ) const
pure virtual

The metadata of the texture (width, height, ...) including a pointer to the CPU data (as initialData).

◆ IsValid()

virtual bool IsValid ( ) const
pure virtual

Are the data valid (e.g., false if file could not be found).


The documentation for this class was generated from the following file: