Home
last modified time | relevance | path

Searched refs:fSamplers (Results 1 – 25 of 35) sorted by relevance

12

/external/skqp/src/gpu/gl/
DGrGLUniformHandler.cpp79 UniformInfo& sampler = fSamplers.push_back(); in addSampler()
87 SkASSERT(fSamplers.count() == fSamplerSwizzles.count()); in addSampler()
88 return GrGLSLUniformHandler::SamplerHandle(fSamplers.count() - 1); in addSampler()
98 for (int i = 0; i < fSamplers.count(); ++i) { in appendUniformDecls()
99 if (fSamplers[i].fVisibility & visibility) { in appendUniformDecls()
100 fSamplers[i].fVariable.appendDecl(fProgramBuilder->shaderCaps(), out); in appendUniformDecls()
113 for (int i = 0; i < fSamplers.count(); ++i, ++currUniform) { in bindUniformLocations()
114 GL_CALL(BindUniformLocation(programID, currUniform, fSamplers[i].fVariable.c_str())); in bindUniformLocations()
115 fSamplers[i].fLocation = currUniform; in bindUniformLocations()
128 for (int i = 0; i < fSamplers.count(); ++i) { in getUniformLocations()
[all …]
DGrGLUniformHandler.h32 , fSamplers(kUniformsPerBlock) {} in GrGLUniformHandler()
46 return fSamplers[handle.toIndex()].fVariable; in samplerVariable()
67 UniformInfoArray fSamplers; variable
/external/skqp/src/gpu/vk/
DGrVkUniformHandler.h60 , fSamplers(kUniformsPerBlock) in GrVkUniformHandler()
78 int numSamplers() const { return fSamplers.count(); } in numSamplers()
80 return fSamplers[handle.toIndex()].fVariable; in samplerVariable()
86 return fSamplers[handle.toIndex()].fVisibility; in samplerVisibility()
90 return fSamplers[u.toIndex()].fImmutableSampler; in immutableSampler()
105 UniformInfoArray fSamplers; variable
DGrVkUniformHandler.cpp275 UniformInfo& info = fSamplers.push_back(); in addSampler()
281 layoutQualifier.appendf("set=%d, binding=%d", kSamplerDescSet, fSamplers.count() - 1); in addSampler()
297 SkASSERT(fSamplerSwizzles.count() == fSamplers.count()); in addSampler()
298 return GrGLSLUniformHandler::SamplerHandle(fSamplers.count() - 1); in addSampler()
306 for (int i = 0; i < fSamplers.count(); ++i) { in appendUniformDecls()
307 const UniformInfo& sampler = fSamplers[i]; in appendUniformDecls()
DGrVkResourceProvider.cpp228 GrVkSampler* sampler = fSamplers.find(GrVkSampler::GenerateKey(params, ycbcrInfo)); in findOrCreateCompatibleSampler()
234 fSamplers.add(sampler); in findOrCreateCompatibleSampler()
411 SkTDynamicHash<GrVkSampler, GrVkSampler::Key>::Iter iter(&fSamplers); in destroyResources()
415 fSamplers.reset(); in destroyResources()
484 SkTDynamicHash<GrVkSampler, GrVkSampler::Key>::Iter iter(&fSamplers); in abandonResources()
488 fSamplers.reset(); in abandonResources()
DGrVkResourceProvider.h278 SkTDynamicHash<GrVkSampler, GrVkSampler::Key> fSamplers; variable
/external/skqp/src/gpu/mtl/
DGrMtlUniformHandler.h49 , fSamplers(kUniformsPerBlock) in GrMtlUniformHandler()
67 int numSamplers() const { return fSamplers.count(); } in numSamplers()
69 return fSamplers[handle.toIndex()].fVariable; in samplerVariable()
75 return fSamplers[handle.toIndex()].fVisibility; in samplerVisibility()
90 UniformInfoArray fSamplers; variable
DGrMtlUniformHandler.mm267 UniformInfo& info = fSamplers.push_back();
273 layoutQualifier.appendf("binding=%d", fSamplers.count() - 1);
278 SkASSERT(fSamplerSwizzles.count() == fSamplers.count());
279 return GrGLSLUniformHandler::SamplerHandle(fSamplers.count() - 1);
287 for (int i = 0; i < fSamplers.count(); ++i) {
288 const UniformInfo& sampler = fSamplers[i];
/external/skia/src/gpu/vk/
DGrVkUniformHandler.h102 , fSamplers(kUniformsPerBlock) in GrVkUniformHandler()
124 int numSamplers() const { return fSamplers.count(); } in numSamplers()
126 return fSamplers.item(handle.toIndex()).fVariable.c_str(); in samplerVariable()
132 return fSamplers.item(handle.toIndex()).fVisibility; in samplerVisibility()
136 return fSamplers.item(u.toIndex()).fImmutableSampler; in immutableSampler()
160 UniformInfoArray fSamplers; variable
DGrVkUniformHandler.cpp218 for (VkUniformInfo& sampler : fSamplers.items()) { in ~GrVkUniformHandler()
278 layoutQualifier.appendf("set=%d, binding=%d", kSamplerDescSet, fSamplers.count()); in addSampler()
280 VkUniformInfo& info = fSamplers.push_back(VkUniformInfo{ in addSampler()
303 SkASSERT(fSamplerSwizzles.count() == fSamplers.count()); in addSampler()
304 return GrGLSLUniformHandler::SamplerHandle(fSamplers.count() - 1); in addSampler()
328 for (const VkUniformInfo& sampler : fSamplers.items()) { in appendUniformDecls()
DGrVkResourceProvider.cpp225 GrVkSampler* sampler = fSamplers.find(GrVkSampler::GenerateKey(params, ycbcrInfo)); in findOrCreateCompatibleSampler()
231 fSamplers.add(sampler); in findOrCreateCompatibleSampler()
491 fSamplers.foreach([&](auto* elt) { elt->unref(); }); in destroyResources()
492 fSamplers.reset(); in destroyResources()
DGrVkResourceProvider.h325 SkTDynamicHash<GrVkSampler, GrVkSampler::Key> fSamplers; variable
/external/skia/src/gpu/mtl/
DGrMtlUniformHandler.h59 , fSamplers(kUniformsPerBlock) in GrMtlUniformHandler()
78 int numSamplers() const { return fSamplers.count(); } in numSamplers()
80 return fSamplers.item(handle.toIndex()).fVariable.c_str(); in samplerVariable()
86 return fSamplers.item(handle.toIndex()).fVisibility; in samplerVisibility()
96 UniformInfoArray fSamplers; variable
DGrMtlResourceProvider.mm60 sampler = fSamplers.find(GrMtlSampler::GenerateKey(params));
63 fSamplers.add(sampler);
70 fSamplers.foreach([&](GrMtlSampler* sampler) { sampler->unref(); });
71 fSamplers.reset();
DGrMtlUniformHandler.mm260 int binding = fSamplers.count();
272 fSamplers.push_back(MtlUniformInfo{
283 SkASSERT(fSamplerSwizzles.count() == fSamplers.count());
284 return GrGLSLUniformHandler::SamplerHandle(fSamplers.count() - 1);
288 for (const UniformInfo& sampler : fSamplers.items()) {
DGrMtlResourceProvider.h85 SkTDynamicHash<GrMtlSampler, GrMtlSampler::Key> fSamplers; variable
/external/skia/src/gpu/gl/
DGrGLUniformHandler.cpp75 fSamplers.push_back(GrGLProgramDataManager::GLUniformInfo{ in addSampler()
85 SkASSERT(fSamplers.count() == fSamplerSwizzles.count()); in addSampler()
86 return GrGLSLUniformHandler::SamplerHandle(fSamplers.count() - 1); in addSampler()
96 for (const UniformInfo& sampler : fSamplers.items()) { in appendUniformDecls()
112 for (GLUniformInfo& sampler : fSamplers.items()) { in bindUniformLocations()
127 for (GLUniformInfo& sampler : fSamplers.items()) { in getUniformLocations()
DGrGLUniformHandler.h45 , fSamplers(kUniformsPerBlock) {} in GrGLUniformHandler()
59 return fSamplers.item(handle.toIndex()).fVariable.c_str(); in samplerVariable()
80 UniformInfoArray fSamplers; variable
/external/skia/src/gpu/
DGrSPIRVUniformHandler.cpp15 , fSamplers(kUniformsPerBlock) in GrSPIRVUniformHandler()
249 int binding = fSamplers.count() * 2; in addSampler()
254 SPIRVUniformInfo& info = fSamplers.push_back(SPIRVUniformInfo{ in addSampler()
265 SkASSERT(fSamplerSwizzles.count() == fSamplers.count()); in addSampler()
284 return GrGLSLUniformHandler::SamplerHandle(fSamplers.count() - 1); in addSampler()
298 for (const SPIRVUniformInfo& sampler : fSamplers.items()) { in appendUniformDecls()
DGrSPIRVUniformHandler.h66 UniformInfoArray fSamplers; variable
/external/skqp/src/gpu/effects/
DGrYUVtoRGBEffect.h42 fSamplers[i].reset(std::move(proxies[i]), in GrYUVtoRGBEffect()
46 GrCoordTransform(fSamplerTransforms[i], fSamplers[i].proxy()); in GrYUVtoRGBEffect()
62 TextureSampler fSamplers[4]; variable
DGrYUVtoRGBEffect.cpp199 fSamplers[i].reset(sk_ref_sp(src.fSamplers[i].proxy()), src.fSamplers[i].samplerState()); in GrYUVtoRGBEffect()
216 return fSamplers[index]; in onTextureSampler()
/external/skqp/tests/
DProcessorTest.cpp97 : INHERITED(kTestFP_ClassID, kNone_OptimizationFlags), fSamplers(4) { in TestFP()
99 fSamplers.emplace_back(proxy); in TestFP()
101 this->setTextureSamplerCnt(fSamplers.count()); in TestFP()
105 : INHERITED(kTestFP_ClassID, kNone_OptimizationFlags), fSamplers(4) { in TestFP()
110 : INHERITED(kTestFP_ClassID, that.optimizationFlags()), fSamplers(4) { in TestFP()
111 for (int i = 0; i < that.fSamplers.count(); ++i) { in TestFP()
112 fSamplers.emplace_back(that.fSamplers[i]); in TestFP()
117 this->setTextureSamplerCnt(fSamplers.count()); in TestFP()
135 const TextureSampler& onTextureSampler(int i) const override { return fSamplers[i]; } in onTextureSampler()
137 GrTAllocator<TextureSampler> fSamplers; member in __anonf75262d90111::TestFP
/external/skia/src/gpu/d3d/
DGrD3DResourceProvider.cpp31 fSamplers.reset(); in destroyResources()
161 D3D12_CPU_DESCRIPTOR_HANDLE* samplerPtr = fSamplers.find(key); in findOrCreateCompatibleSampler()
176 fSamplers.set(key, sampler); in findOrCreateCompatibleSampler()
DGrD3DResourceProvider.h168 SkTHashMap<uint32_t, D3D12_CPU_DESCRIPTOR_HANDLE> fSamplers; variable

12