Lines Matching refs:gpu
22 GrVkRenderTarget::GrVkRenderTarget(GrVkGpu* gpu, in GrVkRenderTarget() argument
29 : GrSurface(gpu, lifeCycle, desc) in GrVkRenderTarget()
32 , GrRenderTarget(gpu, lifeCycle, desc, kUnified_SampleConfig) in GrVkRenderTarget()
41 this->createFramebuffer(gpu); in GrVkRenderTarget()
48 GrVkRenderTarget::GrVkRenderTarget(GrVkGpu* gpu, in GrVkRenderTarget() argument
56 : GrSurface(gpu, lifeCycle, desc) in GrVkRenderTarget()
59 , GrRenderTarget(gpu, lifeCycle, desc, kUnified_SampleConfig) in GrVkRenderTarget()
68 this->createFramebuffer(gpu); in GrVkRenderTarget()
74 GrVkRenderTarget::GrVkRenderTarget(GrVkGpu* gpu, in GrVkRenderTarget() argument
79 : GrSurface(gpu, lifeCycle, desc) in GrVkRenderTarget()
81 , GrRenderTarget(gpu, lifeCycle, desc, kUnified_SampleConfig) in GrVkRenderTarget()
89 this->createFramebuffer(gpu); in GrVkRenderTarget()
95 GrVkRenderTarget::GrVkRenderTarget(GrVkGpu* gpu, in GrVkRenderTarget() argument
101 : GrSurface(gpu, lifeCycle, desc) in GrVkRenderTarget()
103 , GrRenderTarget(gpu, lifeCycle, desc, kUnified_SampleConfig) in GrVkRenderTarget()
111 this->createFramebuffer(gpu); in GrVkRenderTarget()
115 GrVkRenderTarget::Create(GrVkGpu* gpu, in Create() argument
139 msaaResource = GrVkImage::CreateResource(gpu, msImageDesc); in Create()
149 resolveAttachmentView = GrVkImageView::Create(gpu, imageResource->fImage, pixelFormat, in Create()
152 msaaResource->unref(gpu); in Create()
161 const GrVkImageView* colorAttachmentView = GrVkImageView::Create(gpu, colorImage, pixelFormat, in Create()
165 resolveAttachmentView->unref(gpu); in Create()
166 msaaResource->unref(gpu); in Create()
173 texRT = new GrVkRenderTarget(gpu, desc, lifeCycle, imageResource, msaaResource, in Create()
175 msaaResource->unref(gpu); in Create()
177 texRT = new GrVkRenderTarget(gpu, desc, lifeCycle, imageResource, in Create()
185 GrVkRenderTarget::CreateNewRenderTarget(GrVkGpu* gpu, in CreateNewRenderTarget() argument
191 const GrVkImage::Resource* imageResource = GrVkImage::CreateResource(gpu, imageDesc); in CreateNewRenderTarget()
196 GrVkRenderTarget* rt = GrVkRenderTarget::Create(gpu, desc, lifeCycle, imageResource); in CreateNewRenderTarget()
198 imageResource->unref(gpu); in CreateNewRenderTarget()
204 GrVkRenderTarget::CreateWrappedRenderTarget(GrVkGpu* gpu, in CreateWrappedRenderTarget() argument
212 return GrVkRenderTarget::Create(gpu, desc, lifeCycle, imageResource); in CreateWrappedRenderTarget()
220 void GrVkRenderTarget::createFramebuffer(GrVkGpu* gpu) { in createFramebuffer() argument
222 fFramebuffer->unref(gpu); in createFramebuffer()
225 fCachedSimpleRenderPass->unref(gpu); in createFramebuffer()
230 fCachedSimpleRenderPass = gpu->resourceProvider().findOrCreateCompatibleRenderPass(*this); in createFramebuffer()
234 fFramebuffer = GrVkFramebuffer::Create(gpu, this->width(), this->height(), in createFramebuffer()
294 GrVkGpu* gpu = this->getVkGpu(); in releaseInternalObjects() local
297 fMSAAImageResource->unref(gpu); in releaseInternalObjects()
302 fResolveAttachmentView->unref(gpu); in releaseInternalObjects()
306 fColorAttachmentView->unref(gpu); in releaseInternalObjects()
310 fFramebuffer->unref(gpu); in releaseInternalObjects()
314 fCachedSimpleRenderPass->unref(gpu); in releaseInternalObjects()