Home
last modified time | relevance | path

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

/third_party/skia/src/gpu/vk/
DGrVkUniformHandler.h100 , fSamplers(kUniformsPerBlock) in GrVkUniformHandler()
121 int numSamplers() const { return fSamplers.count(); } in numSamplers()
123 return fSamplers.item(handle.toIndex()).fVariable.c_str(); in samplerVariable()
129 return fSamplers.item(handle.toIndex()).fVisibility; in samplerVisibility()
133 return fSamplers.item(u.toIndex()).fImmutableSampler; in immutableSampler()
157 UniformInfoArray fSamplers; variable
DGrVkUniformHandler.cpp191 for (VkUniformInfo& sampler : fSamplers.items()) { in ~GrVkUniformHandler()
257 layoutQualifier.appendf("set=%d, binding=%d", kSamplerDescSet, fSamplers.count()); in addSampler()
274 fSamplers.push_back(tempInfo); in addSampler()
282 fSamplers.back().fImmutableSampler = sampler; in addSampler()
289 SkASSERT(fSamplerSwizzles.count() == fSamplers.count()); in addSampler()
290 return GrGLSLUniformHandler::SamplerHandle(fSamplers.count() - 1); in addSampler()
314 for (const VkUniformInfo& sampler : fSamplers.items()) { in appendUniformDecls()
DGrVkResourceProvider.cpp227 GrVkSampler* sampler = fSamplers.find(GrVkSampler::GenerateKey(params, ycbcrInfo)); in findOrCreateCompatibleSampler()
233 fSamplers.add(sampler); in findOrCreateCompatibleSampler()
493 fSamplers.foreach([&](auto* elt) { elt->unref(); }); in destroyResources()
494 fSamplers.reset(); in destroyResources()
DGrVkResourceProvider.h327 SkTDynamicHash<GrVkSampler, GrVkSampler::Key> fSamplers; variable
DGrVkPipelineStateBuilder.cpp351 fUniformHandler.fSamplers, in finalize()
/third_party/skia/src/gpu/mtl/
DGrMtlUniformHandler.h60 , fSamplers(kUniformsPerBlock) in GrMtlUniformHandler()
79 int numSamplers() const { return fSamplers.count(); } in numSamplers()
81 return fSamplers.item(handle.toIndex()).fVariable.c_str(); in samplerVariable()
87 return fSamplers.item(handle.toIndex()).fVisibility; in samplerVisibility()
97 UniformInfoArray fSamplers; variable
DGrMtlUniformHandler.mm234 int binding = fSamplers.count();
259 fSamplers.push_back(tempInfo);
262 SkASSERT(fSamplerSwizzles.count() == fSamplers.count());
263 return GrGLSLUniformHandler::SamplerHandle(fSamplers.count() - 1);
267 for (const UniformInfo& sampler : fSamplers.items()) {
DGrMtlResourceProvider.mm61 sampler = fSamplers.find(GrMtlSampler::GenerateKey(params));
64 fSamplers.add(sampler);
161 fSamplers.foreach([&](GrMtlSampler* sampler) { sampler->unref(); });
162 fSamplers.reset();
DGrMtlResourceProvider.h91 SkTDynamicHash<GrMtlSampler, GrMtlSampler::Key> fSamplers; variable
/third_party/skia/src/gpu/gl/
DGrGLUniformHandler.cpp90 fSamplers.push_back(tempInfo); in addSampler()
92 SkASSERT(fSamplers.count() == fSamplerSwizzles.count()); in addSampler()
94 return GrGLSLUniformHandler::SamplerHandle(fSamplers.count() - 1); in addSampler()
104 for (const UniformInfo& sampler : fSamplers.items()) { in appendUniformDecls()
120 for (GLUniformInfo& sampler : fSamplers.items()) { in bindUniformLocations()
135 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
DGrGLGpu.cpp228 std::fill_n(fSamplers, kNumSamplers, 0); in SamplerObjectCache()
236 for (GrGLuint sampler : fSamplers) { in ~SamplerObjectCache()
247 if (!fSamplers[index]) { in bindSampler()
253 fSamplers[index] = s; in bindSampler()
266 fTextureUnitStates[unitIdx].fSamplerIDIfKnown != fSamplers[index]) { in bindSampler()
267 GR_GL_CALL(fGpu->glInterface(), BindSampler(unitIdx, fSamplers[index])); in bindSampler()
268 fTextureUnitStates[unitIdx].fSamplerIDIfKnown = fSamplers[index]; in bindSampler()
296 GR_GL_CALL(fGpu->glInterface(), DeleteSamplers(kNumSamplers, fSamplers)); in release()
297 std::fill_n(fSamplers, kNumSamplers, 0); in release()
311 GrGLuint fSamplers[kNumSamplers]; member in GrGLGpu::SamplerObjectCache
/third_party/skia/src/gpu/
DGrSPIRVUniformHandler.cpp15 , fSamplers(kUniformsPerBlock) in GrSPIRVUniformHandler()
232 int binding = fSamplers.count() * 2; in addSampler()
251 fSamplers.push_back(tempInfo); in addSampler()
253 SkASSERT(fSamplerSwizzles.count() == fSamplers.count()); in addSampler()
269 fSamplers.back().fVariable.getName().c_str()); in addSampler()
271 return GrGLSLUniformHandler::SamplerHandle(fSamplers.count() - 1); in addSampler()
285 for (const SPIRVUniformInfo& sampler : fSamplers.items()) { in appendUniformDecls()
DGrSPIRVUniformHandler.h66 UniformInfoArray fSamplers; variable
/third_party/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
DGrD3DPipelineStateBuilder.cpp661 fUniformHandler.fSamplers.count(), in finalize()
/third_party/skia/src/gpu/dawn/
DGrDawnGpu.cpp879 auto i = fSamplers.find(samplerState); in getOrCreateSampler()
880 if (i != fSamplers.end()) { in getOrCreateSampler()
890 fSamplers.insert(std::pair<GrSamplerState, wgpu::Sampler>(samplerState, sampler)); in getOrCreateSampler()
DGrDawnGpu.h249 std::unordered_map<GrSamplerState, wgpu::Sampler, SamplerHash> fSamplers; variable
DGrDawnProgramBuilder.cpp295 int textureCount = builder.fUniformHandler.fSamplers.count(); in Build()
/third_party/skia/src/gpu/gl/builders/
DGrGLProgramBuilder.cpp539 fUniformHandler.fSamplers, in createProgram()