Lines Matching defs:gpu
8 #include "src/gpu/vk/GrVkDescriptorSetManager.h"
10 #include "src/gpu/vk/GrVkDescriptorPool.h"
11 #include "src/gpu/vk/GrVkDescriptorSet.h"
12 #include "src/gpu/vk/GrVkGpu.h"
13 #include "src/gpu/vk/GrVkUniformHandler.h"
19 GrVkDescriptorSetManager* GrVkDescriptorSetManager::CreateUniformManager(GrVkGpu* gpu) {
24 return Create(gpu, VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER, visibilities, samplers);
28 GrVkGpu* gpu, VkDescriptorType type, const GrVkUniformHandler& uniformHandler) {
36 return Create(gpu, type, visibilities, immutableSamplers);
39 GrVkDescriptorSetManager* GrVkDescriptorSetManager::CreateZeroSamplerManager(GrVkGpu* gpu) {
42 return Create(gpu, VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER, visibilities, immutableSamplers);
45 GrVkDescriptorSetManager* GrVkDescriptorSetManager::CreateInputManager(GrVkGpu* gpu) {
49 return Create(gpu, VK_DESCRIPTOR_TYPE_INPUT_ATTACHMENT, visibilities, samplers);
64 static bool get_layout_and_desc_count(GrVkGpu* gpu,
84 (*descCountPerSet) += gpu->vkCaps().ycbcrCombinedImageSamplerDescriptorCount();
109 GR_VK_CALL_RESULT(gpu, result,
110 CreateDescriptorSetLayout(gpu->device(),
140 GR_VK_CALL_RESULT(gpu, result, CreateDescriptorSetLayout(gpu->device(),
175 GR_VK_CALL_RESULT(gpu, result, CreateDescriptorSetLayout(gpu->device(),
188 GrVkGpu* gpu, VkDescriptorType type,
201 if (!get_layout_and_desc_count(gpu, type, visibilities, immutableSamplers, &descSetLayout,
205 return new GrVkDescriptorSetManager(gpu, type, descSetLayout, descCountPerSet, visibilities,
210 GrVkGpu* gpu, VkDescriptorType type, VkDescriptorSetLayout descSetLayout,
226 const GrVkDescriptorSet* GrVkDescriptorSetManager::getDescriptorSet(GrVkGpu* gpu,
235 if (!fPoolManager.getNewDescriptorSet(gpu, &vkDS)) {
239 ds = new GrVkDescriptorSet(gpu, vkDS, fPoolManager.fPool, handle);
250 void GrVkDescriptorSetManager::release(GrVkGpu* gpu) {
251 fPoolManager.freeGPUResources(gpu);
310 bool GrVkDescriptorSetManager::DescriptorPoolManager::getNewPool(GrVkGpu* gpu) {
321 fPool = gpu->resourceProvider().findOrCreateCompatibleDescriptorPool(fDescType,
326 bool GrVkDescriptorSetManager::DescriptorPoolManager::getNewDescriptorSet(GrVkGpu* gpu,
333 if (!this->getNewPool(gpu) ) {
347 GR_VK_CALL_RESULT(gpu, result, AllocateDescriptorSets(gpu->device(),
353 void GrVkDescriptorSetManager::DescriptorPoolManager::freeGPUResources(GrVkGpu* gpu) {
355 GR_VK_CALL(gpu->vkInterface(), DestroyDescriptorSetLayout(gpu->device(), fDescLayout,