#include "src/gpu/ganesh/GrUniformDataManager.h"
#include "include/private/base/SkAssert.h"
#include "include/private/base/SkTemplates.h"
#include "src/base/SkHalf.h"
#include "src/core/SkSLTypeShared.h"
#include "src/gpu/ganesh/GrShaderVar.h"
#include <cstring>
static_assert …;
static_assert …;
static_assert …;
static_assert …;
GrUniformDataManager::GrUniformDataManager(uint32_t uniformCount, uint32_t uniformSize)
: … { … }
void* GrUniformDataManager::getBufferPtrAndMarkDirty(const Uniform& uni) const { … }
int GrUniformDataManager::copyUniforms(void* dest,
const void* src,
int numUniforms,
SkSLType uniformType) const { … }
template <int N, SkSLType FullType, SkSLType HalfType>
void GrUniformDataManager::set(UniformHandle u, const void* v) const { … }
template <int N, SkSLType FullType, SkSLType HalfType>
void GrUniformDataManager::setv(UniformHandle u, int arrayCount, const void* v) const { … }
void GrUniformDataManager::set1i(UniformHandle u, int32_t i0) const { … }
void GrUniformDataManager::set1iv(UniformHandle u,
int arrayCount,
const int32_t v[]) const { … }
void GrUniformDataManager::set1f(UniformHandle u, float v0) const { … }
void GrUniformDataManager::set1fv(UniformHandle u,
int arrayCount,
const float v[]) const { … }
void GrUniformDataManager::set2i(UniformHandle u, int32_t i0, int32_t i1) const { … }
void GrUniformDataManager::set2iv(UniformHandle u,
int arrayCount,
const int32_t v[]) const { … }
void GrUniformDataManager::set2f(UniformHandle u, float v0, float v1) const { … }
void GrUniformDataManager::set2fv(UniformHandle u,
int arrayCount,
const float v[]) const { … }
void GrUniformDataManager::set3i(UniformHandle u,
int32_t i0,
int32_t i1,
int32_t i2) const { … }
void GrUniformDataManager::set3iv(UniformHandle u,
int arrayCount,
const int32_t v[]) const { … }
void GrUniformDataManager::set3f(UniformHandle u, float v0, float v1, float v2) const { … }
void GrUniformDataManager::set3fv(UniformHandle u,
int arrayCount,
const float v[]) const { … }
void GrUniformDataManager::set4i(UniformHandle u,
int32_t i0,
int32_t i1,
int32_t i2,
int32_t i3) const { … }
void GrUniformDataManager::set4iv(UniformHandle u,
int arrayCount,
const int32_t v[]) const { … }
void GrUniformDataManager::set4f(UniformHandle u,
float v0,
float v1,
float v2,
float v3) const { … }
void GrUniformDataManager::set4fv(UniformHandle u,
int arrayCount,
const float v[]) const { … }
void GrUniformDataManager::setMatrix2f(UniformHandle u, const float matrix[]) const { … }
void GrUniformDataManager::setMatrix2fv(UniformHandle u, int arrayCount, const float m[]) const { … }
void GrUniformDataManager::setMatrix3f(UniformHandle u, const float matrix[]) const { … }
void GrUniformDataManager::setMatrix3fv(UniformHandle u, int arrayCount, const float m[]) const { … }
void GrUniformDataManager::setMatrix4f(UniformHandle u, const float matrix[]) const { … }
void GrUniformDataManager::setMatrix4fv(UniformHandle u, int arrayCount, const float m[]) const { … }
template <int N, SkSLType FullType, SkSLType HalfType>
inline void GrUniformDataManager::setMatrices(UniformHandle u,
int arrayCount,
const float matrices[]) const { … }