Home
last modified time | relevance | path

Searched refs:fUniforms (Results 1 – 25 of 50) sorted by relevance

12

/external/skqp/src/gpu/gl/
DGrGLUniformHandler.cpp40 UniformInfo& uni = fUniforms.push_back(); in internalAddUniformArray()
62 return GrGLSLUniformHandler::UniformHandle(fUniforms.count() - 1); in internalAddUniformArray()
92 for (int i = 0; i < fUniforms.count(); ++i) { in appendUniformDecls()
93 if (fUniforms[i].fVisibility & visibility) { in appendUniformDecls()
94 fUniforms[i].fVariable.appendDecl(fProgramBuilder->shaderCaps(), out); in appendUniformDecls()
109 for (int i = 0; i < fUniforms.count(); ++i, ++currUniform) { in bindUniformLocations()
110 GL_CALL(BindUniformLocation(programID, currUniform, fUniforms[i].fVariable.c_str())); in bindUniformLocations()
111 fUniforms[i].fLocation = currUniform; in bindUniformLocations()
122 int count = fUniforms.count(); in getUniformLocations()
125 GL_CALL_RET(location, GetUniformLocation(programID, fUniforms[i].fVariable.c_str())); in getUniformLocations()
[all …]
DGrGLProgramDataManager.cpp23 fUniforms.push_back_n(count); in GrGLProgramDataManager()
25 Uniform& uniform = fUniforms[i]; in GrGLProgramDataManager()
65 const Uniform& uni = fUniforms[u.toIndex()]; in set1i()
76 const Uniform& uni = fUniforms[u.toIndex()]; in set1iv()
86 const Uniform& uni = fUniforms[u.toIndex()]; in set1f()
97 const Uniform& uni = fUniforms[u.toIndex()]; in set1fv()
111 const Uniform& uni = fUniforms[u.toIndex()]; in set2i()
122 const Uniform& uni = fUniforms[u.toIndex()]; in set2iv()
132 const Uniform& uni = fUniforms[u.toIndex()]; in set2f()
143 const Uniform& uni = fUniforms[u.toIndex()]; in set2fv()
[all …]
DGrGLUniformHandler.h22 return fUniforms[u.toIndex()].fVariable; in getUniformVariable()
31 , fUniforms(kUniformsPerBlock) in GrGLUniformHandler()
66 UniformInfoArray fUniforms; variable
/external/skia/src/gpu/gl/
DGrGLProgramDataManager.cpp19 fUniforms.push_back_n(uniforms.count()); in GrGLProgramDataManager()
22 Uniform& uniform = fUniforms[i++]; in GrGLProgramDataManager()
46 const Uniform& uni = fUniforms[u.toIndex()]; in set1i()
57 const Uniform& uni = fUniforms[u.toIndex()]; in set1iv()
67 const Uniform& uni = fUniforms[u.toIndex()]; in set1f()
78 const Uniform& uni = fUniforms[u.toIndex()]; in set1fv()
92 const Uniform& uni = fUniforms[u.toIndex()]; in set2i()
103 const Uniform& uni = fUniforms[u.toIndex()]; in set2iv()
113 const Uniform& uni = fUniforms[u.toIndex()]; in set2f()
124 const Uniform& uni = fUniforms[u.toIndex()]; in set2fv()
[all …]
DGrGLUniformHandler.h23 return fUniforms.item(u.toIndex()).fVariable; in getUniformVariable()
31 return fUniforms.count(); in numUniforms()
35 return fUniforms.item(idx); in uniform()
38 return fUniforms.item(idx); in uniform()
44 , fUniforms(kUniformsPerBlock) in GrGLUniformHandler()
79 UniformInfoArray fUniforms; variable
DGrGLUniformHandler.cpp50 GLUniformInfo& uni = fUniforms.push_back(GrGLProgramDataManager::GLUniformInfo{ in internalAddUniformArray()
62 return GrGLSLUniformHandler::UniformHandle(fUniforms.count() - 1); in internalAddUniformArray()
90 for (const UniformInfo& uniform : fUniforms.items()) { in appendUniformDecls()
107 for (GLUniformInfo& uniform : fUniforms.items()) { in bindUniformLocations()
122 for (GLUniformInfo& uniform : fUniforms.items()) { in getUniformLocations()
/external/skia/src/gpu/mtl/
DGrMtlUniformHandler.h37 return fUniforms.item(u.toIndex()).fVariable; in getUniformVariable()
45 return fUniforms.count(); in numUniforms()
49 return fUniforms.item(idx); in uniform()
52 return fUniforms.item(idx); in uniform()
58 , fUniforms(kUniformsPerBlock) in GrMtlUniformHandler()
92 return fUniforms.item(u.toIndex()); in getUniformInfo()
95 UniformInfoArray fUniforms; variable
DGrMtlPipelineStateDataManager.mm26 Uniform& uniform = fUniforms[i];
41 const Uniform& uni = fUniforms[u.toIndex()];
54 const Uniform& uni = fUniforms[u.toIndex()];
67 const Uniform& uni = fUniforms[u.toIndex()];
80 const Uniform& uni = fUniforms[u.toIndex()];
97 const Uniform& uni = fUniforms[u.toIndex()];
/external/skia/src/gpu/
DGrUniformDataManager.cpp20 fUniforms.push_back_n(uniformCount); in GrUniformDataManager()
30 const Uniform& uni = fUniforms[u.toIndex()]; in set1i()
40 const Uniform& uni = fUniforms[u.toIndex()]; in set1iv()
55 const Uniform& uni = fUniforms[u.toIndex()]; in set1f()
65 const Uniform& uni = fUniforms[u.toIndex()]; in set1fv()
80 const Uniform& uni = fUniforms[u.toIndex()]; in set2i()
91 const Uniform& uni = fUniforms[u.toIndex()]; in set2iv()
106 const Uniform& uni = fUniforms[u.toIndex()]; in set2f()
117 const Uniform& uni = fUniforms[u.toIndex()]; in set2fv()
135 const Uniform& uni = fUniforms[u.toIndex()]; in set3i()
[all …]
DGrSPIRVUniformHandler.h39 return fUniforms.count(); in numUniforms()
43 return fUniforms.item(idx); in uniform()
46 return fUniforms.item(idx); in uniform()
65 UniformInfoArray fUniforms; variable
DGrSPIRVUniformHandler.cpp14 , fUniforms(kUniformsPerBlock) in GrSPIRVUniformHandler()
21 return fUniforms.item(u.toIndex()).fVariable; in getUniformVariable()
25 return fUniforms.item(u.toIndex()).fVariable.getName().c_str(); in getUniformCStr()
229 UniformInfo& info = fUniforms.push_back(SPIRVUniformInfo{ in internalAddUniformArray()
241 return GrGLSLUniformHandler::UniformHandle(fUniforms.count() - 1); in internalAddUniformArray()
308 for (const UniformInfo& uniform : fUniforms.items()) { in appendUniformDecls()
/external/skqp/src/gpu/vk/
DGrVkPipelineStateDataManager.cpp23 fUniforms.push_back_n(count); in GrVkPipelineStateDataManager()
27 Uniform& uniform = fUniforms[i]; in GrVkPipelineStateDataManager()
61 const Uniform& uni = fUniforms[u.toIndex()]; in set1i()
71 const Uniform& uni = fUniforms[u.toIndex()]; in set1iv()
87 const Uniform& uni = fUniforms[u.toIndex()]; in set1f()
98 const Uniform& uni = fUniforms[u.toIndex()]; in set1fv()
114 const Uniform& uni = fUniforms[u.toIndex()]; in set2i()
125 const Uniform& uni = fUniforms[u.toIndex()]; in set2iv()
141 const Uniform& uni = fUniforms[u.toIndex()]; in set2f()
153 const Uniform& uni = fUniforms[u.toIndex()]; in set2fv()
[all …]
DGrVkUniformHandler.h49 return fUniforms[u.toIndex()].fVariable; in getUniformVariable()
59 , fUniforms(kUniformsPerBlock) in GrVkUniformHandler()
100 return fUniforms[u.toIndex()]; in getUniformInfo()
104 UniformInfoArray fUniforms; variable
DGrVkUniformHandler.cpp221 UniformInfo& uni = fUniforms.push_back(); in internalAddUniformArray()
259 return GrGLSLUniformHandler::UniformHandle(fUniforms.count() - 1); in internalAddUniformArray()
318 for (int i = 0; i < fUniforms.count(); ++i) { in appendUniformDecls()
319 const UniformInfo& localUniform = fUniforms[i]; in appendUniformDecls()
342 for (int i = 0; i < fUniforms.count(); ++i) { in appendUniformDecls()
343 const UniformInfo& localUniform = fUniforms[i]; in appendUniformDecls()
/external/skia/src/gpu/vk/
DGrVkUniformHandler.h68 return fUniforms.item(u.toIndex()).fVariable; in getUniformVariable()
81 return fUniforms.count(); in numUniforms()
85 return fUniforms.item(idx); in uniform()
88 return fUniforms.item(idx); in uniform()
101 , fUniforms(kUniformsPerBlock) in GrVkUniformHandler()
154 return fUniforms.item(u.toIndex()); in getUniformInfo()
159 UniformInfoArray fUniforms; variable
DGrVkPipelineStateDataManager.cpp28 Uniform& uniform = fUniforms[i]; in GrVkPipelineStateDataManager()
70 const Uniform& uni = fUniforms[u.toIndex()]; in set1iv()
88 const Uniform& uni = fUniforms[u.toIndex()]; in set1fv()
106 const Uniform& uni = fUniforms[u.toIndex()]; in set2iv()
124 const Uniform& uni = fUniforms[u.toIndex()]; in set2fv()
143 const Uniform& uni = fUniforms[u.toIndex()]; in setMatrix2fv()
/external/skqp/src/gpu/mtl/
DGrMtlPipelineStateDataManager.mm23 fUniforms.push_back_n(count);
27 Uniform& uniform = fUniforms[i];
61 const Uniform& uni = fUniforms[u.toIndex()];
71 const Uniform& uni = fUniforms[u.toIndex()];
87 const Uniform& uni = fUniforms[u.toIndex()];
98 const Uniform& uni = fUniforms[u.toIndex()];
114 const Uniform& uni = fUniforms[u.toIndex()];
125 const Uniform& uni = fUniforms[u.toIndex()];
141 const Uniform& uni = fUniforms[u.toIndex()];
153 const Uniform& uni = fUniforms[u.toIndex()];
[all …]
DGrMtlUniformHandler.h38 return fUniforms[u.toIndex()].fVariable; in getUniformVariable()
48 , fUniforms(kUniformsPerBlock) in GrMtlUniformHandler()
85 return fUniforms[u.toIndex()]; in getUniformInfo()
89 UniformInfoArray fUniforms; variable
/external/skia/include/effects/
DSkRuntimeEffect.h174 ConstIterable<Uniform> uniforms() const { return ConstIterable<Uniform>(fUniforms); } in uniforms()
241 std::vector<Uniform> fUniforms; variable
339 , fUniforms(SkData::MakeUninitialized(fEffect->uniformSize())) in SkRuntimeEffectBuilder()
348 sk_sp<SkData> uniforms() { return fUniforms; } in uniforms()
354 if (!fUniforms->unique()) { in writableUniformData()
355 fUniforms = SkData::MakeWithCopy(fUniforms->data(), fUniforms->size()); in writableUniformData()
357 return fUniforms->writable_data(); in writableUniformData()
361 sk_sp<SkData> fUniforms; variable
/external/skia/modules/particles/src/
DSkParticleEffect.cpp235 if (newCount > fUniforms.count()) { in updateStorage()
236 fUniforms.push_back_n(newCount - fUniforms.count(), 0.0f); in updateStorage()
238 fUniforms.resize(newCount); in updateStorage()
249 auto it = std::find_if(info->fUniforms.begin(), info->fUniforms.end(), in setUniform()
251 if (it == info->fUniforms.end()) { in setUniform()
314 args[1] = fUniforms.data(); in runEffectScript()
319 memcpy(&fUniforms[1], &fState.fAge, sizeof(EffectState)); in runEffectScript()
338 args[1] = fUniforms.data(); in runParticleScript()
343 memcpy(&fUniforms[1], &fState.fAge, sizeof(EffectState)); in runParticleScript()
361 fUniforms[0] = deltaTime; in advanceTime()
/external/skia/src/gpu/effects/
DGrSkSLFP.cpp154 const uint8_t* uniformData = outer.fUniforms->bytes(); in onSetData()
200 , fUniforms(std::move(uniforms)) { in GrSkSLFP()
210 , fUniforms(other.fUniforms) { in GrSkSLFP()
238 b->add32(SkToU32(fUniforms->size())); in onGetGLSLProcessorKey()
243 return fEffect->hash() == sk.fEffect->hash() && fUniforms->equals(sk.fUniforms.get()); in onIsEqual()
261 program->eval(1, childColors.begin(), fUniforms->data(), result.vec()); in constantOutputForConstantInput()
/external/skia/src/core/
DSkVMBlitter.cpp551 , fUniforms(skvm::Ptr{0}, kBlitterUniformsCount)
553 , fKey(cache_key(fParams, &fUniforms, &fAlloc, ok))
577 skvm::Uniforms fUniforms; // Most data is copied directly into fUniforms, member in __anon64704ec60111::Blitter
605 SkDEBUGCODE(size_t prev = fUniforms.buf.size();) in buildProgram()
606 fUniforms.buf.resize(kBlitterUniformsCount); in buildProgram()
608 build_program(&builder, fParams.withCoverage(coverage), &fUniforms, &fAlloc); in buildProgram()
609 SkASSERTF(fUniforms.buf.size() == prev, in buildProgram()
610 "%zu, prev was %zu", fUniforms.buf.size(), prev); in buildProgram()
633 memcpy(fUniforms.buf.data(), &uniforms, sizeof(BlitterUniforms)); in updateUniforms()
650 fBlitH.eval(w, fUniforms.buf.data(), fDevice.addr(x,y), sprite); in blitH()
[all …]
DSkRuntimeEffect.cpp376 , fUniforms(std::move(uniforms)) in SkRuntimeEffect()
400 return fUniforms.empty() ? 0 in uniformSize()
401 : SkAlign4(fUniforms.back().offset + fUniforms.back().sizeInBytes()); in uniformSize()
405 auto iter = std::find_if(fUniforms.begin(), fUniforms.end(), in findUniform()
407 return iter == fUniforms.end() ? nullptr : &(*iter); in findUniform()
546 , fUniforms(std::move(uniforms)) in SkRuntimeColorFilter()
554 get_xformed_uniforms(fEffect.get(), fUniforms, colorInfo.colorSpace()); in asFragmentProcessor()
586 sk_sp<SkData> inputs = get_xformed_uniforms(fEffect.get(), fUniforms, dstCS); in onProgram()
624 sk_sp<SkData> inputs = get_xformed_uniforms(fEffect.get(), fUniforms, dstCS); in onFilterColor4f()
648 if (fUniforms) { in flatten()
[all …]
/external/skia/gm/
Dparticles.cpp37 , fUniforms(std::move(uniforms)) {}
55 for (const auto& val : fUniforms) { in onOnceBeforeDraw()
87 std::vector<UniformValue> fUniforms; member in ParticlesGM
/external/skia/modules/particles/include/
DSkParticleBinding.h42 , fUniforms(uniforms) in SkParticleExternalFunction()
47 skvm::Uniforms* fUniforms; variable

12