Flutter Engine
The Flutter Engine
|
#include <GrGLSLProgramDataManager.h>
Public Types | |
enum class | Specialized : bool { kNo = false , kYes = true } |
Public Member Functions | |
virtual | ~GrGLSLProgramDataManager () |
virtual void | set1i (UniformHandle, int32_t) const =0 |
virtual void | set1iv (UniformHandle, int arrayCount, const int v[]) const =0 |
virtual void | set1f (UniformHandle, float v0) const =0 |
virtual void | set1fv (UniformHandle, int arrayCount, const float v[]) const =0 |
virtual void | set2i (UniformHandle, int32_t, int32_t) const =0 |
virtual void | set2iv (UniformHandle, int arrayCount, const int v[]) const =0 |
virtual void | set2f (UniformHandle, float, float) const =0 |
virtual void | set2fv (UniformHandle, int arrayCount, const float v[]) const =0 |
virtual void | set3i (UniformHandle, int32_t, int32_t, int32_t) const =0 |
virtual void | set3iv (UniformHandle, int arrayCount, const int v[]) const =0 |
virtual void | set3f (UniformHandle, float, float, float) const =0 |
virtual void | set3fv (UniformHandle, int arrayCount, const float v[]) const =0 |
virtual void | set4i (UniformHandle, int32_t, int32_t, int32_t, int32_t) const =0 |
virtual void | set4iv (UniformHandle, int arrayCount, const int v[]) const =0 |
virtual void | set4f (UniformHandle, float, float, float, float) const =0 |
virtual void | set4fv (UniformHandle, int arrayCount, const float v[]) const =0 |
virtual void | setMatrix2f (UniformHandle, const float matrix[]) const =0 |
virtual void | setMatrix3f (UniformHandle, const float matrix[]) const =0 |
virtual void | setMatrix4f (UniformHandle, const float matrix[]) const =0 |
virtual void | setMatrix2fv (UniformHandle, int arrayCount, const float matrices[]) const =0 |
virtual void | setMatrix3fv (UniformHandle, int arrayCount, const float matrices[]) const =0 |
virtual void | setMatrix4fv (UniformHandle, int arrayCount, const float matrices[]) const =0 |
void | setSkMatrix (UniformHandle, const SkMatrix &) const |
void | setSkM44 (UniformHandle, const SkM44 &) const |
void | setRuntimeEffectUniforms (SkSpan< const SkRuntimeEffect::Uniform >, SkSpan< const UniformHandle >, SkSpan< const Specialized >, const void *src) const |
void | setRuntimeEffectUniforms (SkSpan< const SkRuntimeEffect::Uniform > uniforms, SkSpan< const UniformHandle > handles, const void *src) const |
Protected Member Functions | |
GrGLSLProgramDataManager () | |
Manages the resources used by a shader program. The resources are objects the program uses to communicate with the application code.
Definition at line 26 of file GrGLSLProgramDataManager.h.
|
strong |
Enumerator | |
---|---|
kNo | |
kYes |
Definition at line 65 of file GrGLSLProgramDataManager.h.
|
inlinevirtual |
Definition at line 30 of file GrGLSLProgramDataManager.h.
|
inlineprotected |
Definition at line 86 of file GrGLSLProgramDataManager.h.
|
pure virtual |
Implemented in GrGLProgramDataManager, and GrUniformDataManager.
|
pure virtual |
Implemented in GrGLProgramDataManager, GrUniformDataManager, GrMtlPipelineStateDataManager, and GrVkPipelineStateDataManager.
|
pure virtual |
Functions for uploading uniform values. The varities ending in v can be used to upload to an array of uniforms. arrayCount must be <= the array count of the uniform.
Implemented in GrGLProgramDataManager, and GrUniformDataManager.
|
pure virtual |
|
pure virtual |
Implemented in GrGLProgramDataManager, and GrUniformDataManager.
|
pure virtual |
Implemented in GrGLProgramDataManager, GrUniformDataManager, GrMtlPipelineStateDataManager, and GrVkPipelineStateDataManager.
|
pure virtual |
Implemented in GrGLProgramDataManager, and GrUniformDataManager.
|
pure virtual |
|
pure virtual |
Implemented in GrGLProgramDataManager, and GrUniformDataManager.
|
pure virtual |
Implemented in GrGLProgramDataManager, and GrUniformDataManager.
|
pure virtual |
Implemented in GrGLProgramDataManager, and GrUniformDataManager.
|
pure virtual |
|
pure virtual |
Implemented in GrGLProgramDataManager, and GrUniformDataManager.
|
pure virtual |
Implemented in GrGLProgramDataManager, and GrUniformDataManager.
|
pure virtual |
Implemented in GrGLProgramDataManager, and GrUniformDataManager.
|
pure virtual |
|
pure virtual |
Implemented in GrGLProgramDataManager, GrUniformDataManager, and GrMtlPipelineStateDataManager.
|
pure virtual |
Implemented in GrGLProgramDataManager, GrUniformDataManager, GrMtlPipelineStateDataManager, and GrVkPipelineStateDataManager.
|
pure virtual |
Implemented in GrGLProgramDataManager, and GrUniformDataManager.
|
pure virtual |
Implemented in GrGLProgramDataManager, and GrUniformDataManager.
|
pure virtual |
Implemented in GrGLProgramDataManager, and GrUniformDataManager.
|
pure virtual |
Implemented in GrGLProgramDataManager, and GrUniformDataManager.
|
inline |
Definition at line 79 of file GrGLSLProgramDataManager.h.
void GrGLSLProgramDataManager::setRuntimeEffectUniforms | ( | SkSpan< const SkRuntimeEffect::Uniform > | uniforms, |
SkSpan< const UniformHandle > | handles, | ||
SkSpan< const Specialized > | specialized, | ||
const void * | src | ||
) | const |
Sets runtime effect uniform values. The Specialized span is optional. If it is non-empty then it should be the same size as the Uniform span. Uniforms for which the Specialized value is kYes will be skipped and the UniformHandle span should have an entry for each kNo value. If Specialized is empty then the Uniform and UniformHandle spans should have the same size.
Definition at line 35 of file GrGLSLProgramDataManager.cpp.
void GrGLSLProgramDataManager::setSkM44 | ( | UniformHandle | u, |
const SkM44 & | matrix | ||
) | const |
Definition at line 31 of file GrGLSLProgramDataManager.cpp.
void GrGLSLProgramDataManager::setSkMatrix | ( | UniformHandle | u, |
const SkMatrix & | matrix | ||
) | const |
Definition at line 16 of file GrGLSLProgramDataManager.cpp.