#include <PipelineData.h>
Definition at line 33 of file PipelineData.h.
◆ UniformDataBlock() [1/2]
skgpu::graphite::UniformDataBlock::UniformDataBlock |
( |
SkSpan< const char > |
data | ) |
|
|
inline |
◆ UniformDataBlock() [2/2]
skgpu::graphite::UniformDataBlock::UniformDataBlock |
( |
| ) |
|
|
default |
◆ data()
const char * skgpu::graphite::UniformDataBlock::data |
( |
| ) |
const |
|
inline |
◆ hash()
uint32_t skgpu::graphite::UniformDataBlock::hash |
( |
| ) |
const |
Definition at line 45 of file PipelineData.cpp.
45 {
47}
constexpr size_t size() const
uint32_t Hash32(const void *data, size_t bytes, uint32_t seed)
◆ Make()
Definition at line 35 of file PipelineData.cpp.
35 {
36 static constexpr size_t kUniformAlignment = alignof(void*);
37 char* mem =
static_cast<char*
>(arena->
makeBytesAlignedTo(other.size(), kUniformAlignment));
38 memcpy(mem, other.data(), other.size());
39
40 return arena->
make([&](
void* ptr) {
42 });
43}
void * makeBytesAlignedTo(size_t size, size_t align)
auto make(Ctor &&ctor) -> decltype(ctor(nullptr))
◆ operator!=()
bool skgpu::graphite::UniformDataBlock::operator!= |
( |
const UniformDataBlock & |
that | ) |
const |
|
inline |
◆ operator==()
bool skgpu::graphite::UniformDataBlock::operator== |
( |
const UniformDataBlock & |
that | ) |
const |
|
inline |
Definition at line 45 of file PipelineData.h.
45 {
46 return fData.
size() == that.fData.size() &&
47 !memcmp(fData.
data(), that.fData.data(), fData.
size());
48 }
◆ size()
size_t skgpu::graphite::UniformDataBlock::size |
( |
| ) |
const |
|
inline |
The documentation for this class was generated from the following files: