Lines Matching refs:gpu

24 GrVkProgram::GrVkProgram(GrVkGpu* gpu,  in GrVkProgram()  argument
53 fVertexUniformBuffer.reset(GrVkUniformBuffer::Create(gpu, vertexUniformSize, true)); in GrVkProgram()
54 fFragmentUniformBuffer.reset(GrVkUniformBuffer::Create(gpu, fragmentUniformSize, true)); in GrVkProgram()
73 void GrVkProgram::freeTempResources(const GrVkGpu* gpu) { in freeTempResources() argument
75 fSamplers[i]->unref(gpu); in freeTempResources()
80 fTextureViews[i]->unref(gpu); in freeTempResources()
85 fTextures[i]->unref(gpu); in freeTempResources()
90 void GrVkProgram::freeGPUResources(const GrVkGpu* gpu) { in freeGPUResources() argument
92 fPipeline->unref(gpu); in freeGPUResources()
96 fDescriptorPool->unref(gpu); in freeGPUResources()
100 GR_VK_CALL(gpu->vkInterface(), DestroyPipelineLayout(gpu->device(), in freeGPUResources()
107 GR_VK_CALL(gpu->vkInterface(), DestroyDescriptorSetLayout(gpu->device(), fDSLayout[0], in freeGPUResources()
112 GR_VK_CALL(gpu->vkInterface(), DestroyDescriptorSetLayout(gpu->device(), fDSLayout[1], in freeGPUResources()
118 fVertexUniformBuffer->release(gpu); in freeGPUResources()
122 fFragmentUniformBuffer->release(gpu); in freeGPUResources()
124 this->freeTempResources(gpu); in freeGPUResources()
166 void GrVkProgram::setData(const GrVkGpu* gpu, in setData() argument
171 this->freeTempResources(gpu); in setData()
191 this->writeUniformBuffers(gpu); in setData()
193 this->writeSamplers(gpu, textureBindings); in setData()
196 void GrVkProgram::writeUniformBuffers(const GrVkGpu* gpu) { in writeUniformBuffers() argument
197 fProgramDataManager.uploadUniformBuffers(gpu, fVertexUniformBuffer, fFragmentUniformBuffer); in writeUniformBuffers()
251 GR_VK_CALL(gpu->vkInterface(), UpdateDescriptorSets(gpu->device(), in writeUniformBuffers()
258 void GrVkProgram::writeSamplers(const GrVkGpu* gpu, in writeSamplers() argument
263 fSamplers.push(GrVkSampler::Create(gpu, *textureBindings[i])); in writeSamplers()
281 texture->setImageLayout(gpu, in writeSamplers()
308 GR_VK_CALL(gpu->vkInterface(), UpdateDescriptorSets(gpu->device(), in writeSamplers()
340 void GrVkProgram::bind(const GrVkGpu* gpu, GrVkCommandBuffer* commandBuffer) { in bind() argument
341 commandBuffer->bindPipeline(gpu, fPipeline); in bind()
342 commandBuffer->bindDescriptorSets(gpu, this, fPipelineLayout, 0, 2, fDescriptorSets, 0, in bind()