Searched refs:GrVkSampler (Results 1 - 6 of 6) sorted by relevance

/external/skia/src/gpu/vk/
H A DGrVkSampler.h19 class GrVkSampler : public GrVkResource { class in inherits:GrVkResource
21 static GrVkSampler* Create(const GrVkGpu* gpu, const GrSamplerParams&, uint32_t mipLevels);
25 // Helpers for hashing GrVkSampler
28 static const uint16_t& GetKey(const GrVkSampler& sampler) { return sampler.fKey; }
33 SkDebugf("GrVkSampler: %d (%d refs)\n", fSampler, this->getRefCnt());
38 GrVkSampler(VkSampler sampler, uint16_t key) : INHERITED(), fSampler(sampler), fKey(key) {} function in class:GrVkSampler
H A DGrVkSampler.cpp8 #include "GrVkSampler.h"
25 GrVkSampler* GrVkSampler::Create(const GrVkGpu* gpu, const GrSamplerParams& params,
71 return new GrVkSampler(sampler, GenerateKey(params, mipLevels));
74 void GrVkSampler::freeGPUData(const GrVkGpu* gpu) const {
79 uint16_t GrVkSampler::GenerateKey(const GrSamplerParams& params, uint32_t mipLevels) {
H A DGrVkResourceProvider.h34 class GrVkSampler;
100 // Finds or creates a compatible GrVkSampler based on the GrSamplerParams.
102 GrVkSampler* findOrCreateCompatibleSampler(const GrSamplerParams&, uint32_t mipLevels);
251 // Stores GrVkSampler objects that we've already created so we can reuse them across multiple
253 SkTDynamicHash<GrVkSampler, uint16_t> fSamplers;
H A DGrVkPipelineState.h28 class GrVkSampler;
216 SkTDArray<GrVkSampler*> fSamplers;
H A DGrVkResourceProvider.cpp15 #include "GrVkSampler.h"
166 GrVkSampler* GrVkResourceProvider::findOrCreateCompatibleSampler(const GrSamplerParams& params,
168 GrVkSampler* sampler = fSamplers.find(GrVkSampler::GenerateKey(params, mipLevels));
170 sampler = GrVkSampler::Create(fGpu, params, mipLevels);
345 SkTDynamicHash<GrVkSampler, uint16_t>::Iter iter(&fSamplers);
406 SkTDynamicHash<GrVkSampler, uint16_t>::Iter iter(&fSamplers);
H A DGrVkCopyManager.cpp21 #include "GrVkSampler.h"
249 GrVkSampler* sampler =

Completed in 95 milliseconds