All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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...

Public Member Functions

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

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

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.

virtual const HgiTextureDesc& GetTextureDesc ( ) const
pure virtual

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

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: