8#ifndef GrVkUniformHandler_DEFINED
9#define GrVkUniformHandler_DEFINED
81 return fUniforms.
count();
85 return fUniforms.
item(idx);
88 return fUniforms.
item(idx);
101 , fUsePushConstants(
false)
102 , fCurrentOffsets{0, 0} {
111 const char** outName)
override;
119 SamplerHandle addInputSampler(
const skgpu::Swizzle& swizzle,
const char*
name)
override;
121 int numSamplers()
const {
return fSamplers.
count(); }
122 const char* samplerVariable(SamplerHandle handle)
const override {
125 skgpu::Swizzle samplerSwizzle(SamplerHandle handle)
const override {
126 return fSamplerSwizzles[handle.toIndex()];
128 uint32_t samplerVisibility(SamplerHandle handle)
const {
136 const char* inputSamplerVariable(SamplerHandle handle)
const override {
143 skgpu::Swizzle inputSamplerSwizzle(SamplerHandle handle)
const override {
145 return fInputSwizzle;
151 return fUniforms.
item(u.toIndex());
154 void determineIfUsePushConstants()
const;
159 UniformInfo fInputUniform;
161 mutable bool fUsePushConstants;
const char * c_str() const
DEF_SWITCHES_START aot vmservice shared library name