#include <GrVkUniformHandler.h>
|
| ~GrVkUniformHandler () override |
|
const GrShaderVar & | getUniformVariable (UniformHandle u) const override |
|
const char * | getUniformCStr (UniformHandle u) const override |
|
uint32_t | getRTFlipOffset () const |
|
int | numUniforms () const override |
|
UniformInfo & | uniform (int idx) override |
|
const UniformInfo & | uniform (int idx) const override |
|
bool | usePushConstants () const |
|
uint32_t | currentOffset () const |
|
Public Member Functions inherited from GrGLSLUniformHandler |
virtual | ~GrGLSLUniformHandler () |
|
UniformHandle | addUniform (const GrProcessor *owner, uint32_t visibility, SkSLType type, const char *name, const char **outName=nullptr) |
|
UniformHandle | addUniformArray (const GrProcessor *owner, uint32_t visibility, SkSLType type, const char *name, int arrayCount, const char **outName=nullptr) |
|
virtual const GrShaderVar & | getUniformVariable (UniformHandle u) const =0 |
|
virtual const char * | getUniformCStr (UniformHandle u) const =0 |
|
virtual int | numUniforms () const =0 |
|
virtual UniformInfo & | uniform (int idx)=0 |
|
virtual const UniformInfo & | uniform (int idx) const =0 |
|
GrShaderVar | getUniformMapping (const GrProcessor &owner, SkString rawName) const |
|
GrShaderVar | liftUniformToVertexShader (const GrProcessor &owner, SkString rawName) |
|
Definition at line 19 of file GrVkUniformHandler.h.
◆ UniformInfoArray
◆ anonymous enum
Enumerator |
---|
kUniformBufferDescSet | Binding a descriptor set invalidates all higher index descriptor sets. We must bind in the order of this enumeration. Samplers are after Uniforms because GrOps can specify GP textures as dynamic state, meaning they get rebound for each draw in a pipeline while uniforms are bound once before all the draws. We bind input attachments after samplers so those also need to be rebound if we bind new samplers.
|
kSamplerDescSet | |
kInputDescSet | |
kLastDescSet | |
Definition at line 23 of file GrVkUniformHandler.h.
23 {
24
25
26
27
28
29
30
34
36 };
◆ anonymous enum
◆ anonymous enum
◆ Layout
◆ ~GrVkUniformHandler()
GrVkUniformHandler::~GrVkUniformHandler |
( |
| ) |
|
|
override |
Definition at line 194 of file GrVkUniformHandler.cpp.
194 {
195 for (VkUniformInfo& sampler : fSamplers.
items()) {
196 if (sampler.fImmutableSampler) {
197 sampler.fImmutableSampler->unref();
198 sampler.fImmutableSampler = nullptr;
199 }
200 }
201}
◆ currentOffset()
uint32_t GrVkUniformHandler::currentOffset |
( |
| ) |
const |
|
inline |
◆ getRTFlipOffset()
uint32_t GrVkUniformHandler::getRTFlipOffset |
( |
| ) |
const |
Returns the offset that the RTFlip synthetic uniform should use if it needs to be created.
Definition at line 384 of file GrVkUniformHandler.cpp.
◆ getUniformCStr()
const char * GrVkUniformHandler::getUniformCStr |
( |
UniformHandle |
u | ) |
const |
|
inlineoverridevirtual |
◆ getUniformVariable()
◆ numUniforms()
int GrVkUniformHandler::numUniforms |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ uniform() [1/2]
◆ uniform() [2/2]
◆ usePushConstants()
bool GrVkUniformHandler::usePushConstants |
( |
| ) |
const |
|
inline |
◆ GrVkDescriptorSetManager
◆ GrVkPipelineStateBuilder
◆ kDescSetCount
◆ kLayoutCount
◆ kUniformsPerBlock
const int GrVkUniformHandler::kUniformsPerBlock = 8 |
|
static |
The documentation for this class was generated from the following files: