#include <GraphiteResourceKey.h>
Definition at line 16 of file GraphiteResourceKey.h.
◆ GraphiteResourceKey() [1/2]
skgpu::graphite::GraphiteResourceKey::GraphiteResourceKey |
( |
| ) |
|
|
inline |
◆ GraphiteResourceKey() [2/2]
◆ GenerateResourceType()
ResourceType skgpu::graphite::GraphiteResourceKey::GenerateResourceType |
( |
| ) |
|
|
static |
Generate a unique ResourceType.
Definition at line 12 of file GraphiteResourceKey.cpp.
12 {
14
15 int32_t
type = nextType.fetch_add(1, std::memory_order_relaxed);
16 if (
type > SkTo<int32_t>(UINT16_MAX)) {
17 SK_ABORT(
"Too many Graphite Resource Types");
18 }
19
21}
#define SK_ABORT(message,...)
static const uint32_t kInvalidDomain
◆ isValid()
bool skgpu::ResourceKey::isValid |
( |
| ) |
const |
|
inline |
◆ operator!=()
bool skgpu::graphite::GraphiteResourceKey::operator!= |
( |
const GraphiteResourceKey & |
that | ) |
const |
|
inline |
◆ operator=()
Definition at line 35 of file GraphiteResourceKey.h.
35 {
37 fShareable = that.fShareable;
38 return *this;
39 }
ResourceKey & operator=(const ResourceKey &that)
◆ operator==()
bool skgpu::graphite::GraphiteResourceKey::operator== |
( |
const GraphiteResourceKey & |
that | ) |
const |
|
inline |
◆ reset()
void skgpu::ResourceKey::reset |
( |
| ) |
|
|
inline |
reset() returns the key to the invalid state.
Definition at line 49 of file ResourceKey.h.
49 {
50 fKey.reset(kMetaDataCnt);
51 fKey[kHash_MetaDataIdx] = 0;
53 }
◆ resourceType()
ResourceType skgpu::graphite::GraphiteResourceKey::resourceType |
( |
| ) |
const |
|
inline |
◆ shareable()
Shareable skgpu::graphite::GraphiteResourceKey::shareable |
( |
| ) |
const |
|
inline |
The documentation for this class was generated from the following files: