Lines Matching refs:gpu
8 // This is a GPU-backend specific test. It relies on static intializers to work
33 void test(GrVkGpu* gpu, skiatest::Reporter* reporter) {
67 if (!GrCompileVkShaderModule(gpu, vertShaderText, VK_SHADER_STAGE_VERTEX_BIT,
69 this->destroyResources(gpu);
75 if (!GrCompileVkShaderModule(gpu, fragShaderText, VK_SHADER_STAGE_FRAGMENT_BIT,
77 this->destroyResources(gpu);
84 GrVkResourceProvider& resourceProvider = gpu->resourceProvider();
107 VkResult err = GR_VK_CALL(gpu->vkInterface(), CreatePipelineLayout(gpu->device(),
112 this->destroyResources(gpu);
124 sk_sp<GrTexture> tex = gpu->createTexture(surfDesc, SkBudgeted::kNo);
126 this->destroyResources(gpu);
135 GrVkCopyPipeline* copyPipeline = GrVkCopyPipeline::Create(gpu,
144 copyPipeline->unref(gpu);
147 this->destroyResources(gpu);
150 void destroyResources(GrVkGpu* gpu) {
152 GR_VK_CALL(gpu->vkInterface(), DestroyShaderModule(gpu->device(), fVertShaderModule,
158 GR_VK_CALL(gpu->vkInterface(), DestroyShaderModule(gpu->device(), fFragShaderModule,
164 GR_VK_CALL(gpu->vkInterface(), DestroyPipelineLayout(gpu->device(), fPipelineLayout,
181 GrVkGpu* gpu = static_cast<GrVkGpu*>(context->contextPriv().getGpu());
183 if (!gpu->vkCaps().supportsCopiesAsDraws()) {
188 copyProgram.test(gpu, reporter);