#include <BackendTexture.h>
Definition at line 35 of file BackendTexture.h.
◆ BackendTexture() [1/2]
skgpu::graphite::BackendTexture::BackendTexture |
( |
| ) |
|
|
default |
◆ BackendTexture() [2/2]
skgpu::graphite::BackendTexture::BackendTexture |
( |
const BackendTexture & |
that | ) |
|
◆ ~BackendTexture()
skgpu::graphite::BackendTexture::~BackendTexture |
( |
| ) |
|
|
default |
◆ backend()
BackendApi skgpu::graphite::BackendTexture::backend |
( |
| ) |
const |
|
inline |
◆ dimensions()
SkISize skgpu::graphite::BackendTexture::dimensions |
( |
| ) |
const |
|
inline |
◆ info()
const TextureInfo & skgpu::graphite::BackendTexture::info |
( |
| ) |
const |
|
inline |
◆ isValid()
bool skgpu::graphite::BackendTexture::isValid |
( |
| ) |
const |
|
inline |
◆ operator!=()
bool skgpu::graphite::BackendTexture::operator!= |
( |
const BackendTexture & |
that | ) |
const |
|
inline |
◆ operator=()
Definition at line 30 of file BackendTexture.cpp.
30 {
31 if (!that.isValid()) {
32 fInfo = {};
33 return *this;
34 }
35
37 fDimensions = that.fDimensions;
38 fInfo = that.fInfo;
39
40 switch (that.backend()) {
41#ifdef SK_DAWN
43 fDawnTexture = that.fDawnTexture;
44 fDawnTextureView = that.fDawnTextureView;
45 break;
46#endif
47#ifdef SK_METAL
49 fMtlTexture = that.fMtlTexture;
50 break;
51#endif
52#ifdef SK_VULKAN
54 fVkImage = that.fVkImage;
55 fMutableState = that.fMutableState;
56 fMemoryAlloc = that.fMemoryAlloc;
57 break;
58#endif
59 default:
61 }
62 return *this;
63}
#define SK_ABORT(message,...)
BackendApi backend() const
◆ operator==()
bool skgpu::graphite::BackendTexture::operator== |
( |
const BackendTexture & |
that | ) |
const |
Definition at line 65 of file BackendTexture.cpp.
65 {
66 if (!this->
isValid() || !that.isValid()) {
67 return false;
68 }
69
70 if (fDimensions != that.fDimensions || fInfo != that.fInfo) {
71 return false;
72 }
73
74 switch (that.backend()) {
75#ifdef SK_DAWN
77 if (fDawnTexture != that.fDawnTexture) {
78 return false;
79 }
80 if (fDawnTextureView != that.fDawnTextureView) {
81 return false;
82 }
83 break;
84#endif
85#ifdef SK_METAL
87 if (fMtlTexture != that.fMtlTexture) {
88 return false;
89 }
90 break;
91#endif
92#ifdef SK_VULKAN
94 if (fVkImage != that.fVkImage) {
95 return false;
96 }
97 break;
98#endif
99 default:
101 }
102 return true;
103}
◆ setMutableState()
◆ VulkanResourceProvider
◆ fEnsureUnionNonEmpty
void* skgpu::graphite::BackendTexture::fEnsureUnionNonEmpty |
The documentation for this class was generated from the following files: