Loading...
Searching...
No Matches
textureCpuData.h
1//
2// Copyright 2020 Pixar
3//
4// Licensed under the terms set forth in the LICENSE.txt file available at
5// https://openusd.org/license.
6//
7#ifndef PXR_IMAGING_HD_ST_TEXTURE_CPU_DATA_H
8#define PXR_IMAGING_HD_ST_TEXTURE_CPU_DATA_H
9
10#include "pxr/pxr.h"
11#include "pxr/imaging/hdSt/api.h"
12
13PXR_NAMESPACE_OPEN_SCOPE
14
15struct HgiTextureDesc;
16
23public:
24 HDST_API
25 virtual ~HdStTextureCpuData();
26
29 virtual const HgiTextureDesc &GetTextureDesc() const = 0;
30
34 virtual bool GetGenerateMipmaps() const = 0;
35
37 virtual bool IsValid() const = 0;
38};
39
40PXR_NAMESPACE_CLOSE_SCOPE
41
42#endif
Represents CPU data that can be stored in a HdStUvTextureObject, mostly, likely during the load phase...
virtual const HgiTextureDesc & GetTextureDesc() 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).
Describes the properties needed to create a GPU texture.
Definition: texture.h:91