Lines Matching refs:gpu
19 #define VK_CALL(GPU, X) GR_VK_CALL(GPU->vkInterface(), X)
21 GrVkTextureRenderTarget::GrVkTextureRenderTarget(GrVkGpu* gpu,
31 : GrSurface(gpu, desc)
33 , GrVkTexture(gpu, desc, info, texView, mipMapsStatus, ownership)
34 , GrVkRenderTarget(gpu, desc, info, msaaInfo, colorAttachmentView,
39 GrVkTextureRenderTarget::GrVkTextureRenderTarget(GrVkGpu* gpu,
47 : GrSurface(gpu, desc)
49 , GrVkTexture(gpu, desc, info, texView, mipMapsStatus, ownership)
50 , GrVkRenderTarget(gpu, desc, info, colorAttachmentView, GrBackendObjectOwnership::kOwned) {
54 GrVkTextureRenderTarget::GrVkTextureRenderTarget(GrVkGpu* gpu,
63 : GrSurface(gpu, desc)
65 , GrVkTexture(gpu, desc, info, texView, mipMapsStatus, ownership)
66 , GrVkRenderTarget(gpu, desc, info, msaaInfo, colorAttachmentView,
71 GrVkTextureRenderTarget::GrVkTextureRenderTarget(GrVkGpu* gpu,
78 : GrSurface(gpu, desc)
80 , GrVkTexture(gpu, desc, info, texView, mipMapsStatus, ownership)
81 , GrVkRenderTarget(gpu, desc, info, colorAttachmentView, ownership) {
85 sk_sp<GrVkTextureRenderTarget> GrVkTextureRenderTarget::Make(GrVkGpu* gpu,
94 const GrVkImageView* imageView = GrVkImageView::Create(gpu, image, info.fFormat,
123 if (!GrVkImage::InitImageInfo(gpu, msImageDesc, &msInfo)) {
124 imageView->unref(gpu);
132 resolveAttachmentView = GrVkImageView::Create(gpu, image, pixelFormat,
136 GrVkImage::DestroyImageInfo(gpu, &msInfo);
137 imageView->unref(gpu);
145 const GrVkImageView* colorAttachmentView = GrVkImageView::Create(gpu, colorImage, pixelFormat,
149 resolveAttachmentView->unref(gpu);
150 GrVkImage::DestroyImageInfo(gpu, &msInfo);
152 imageView->unref(gpu);
160 gpu, budgeted, desc,
167 gpu, desc,
176 gpu, budgeted, desc,
182 gpu, desc,
192 GrVkTextureRenderTarget::CreateNewTextureRenderTarget(GrVkGpu* gpu,
201 if (!GrVkImage::InitImageInfo(gpu, imageDesc, &info)) {
205 sk_sp<GrVkTextureRenderTarget> trt = Make(gpu, desc, info, mipMapsStatus, budgeted,
208 GrVkImage::DestroyImageInfo(gpu, &info);
215 GrVkTextureRenderTarget::MakeWrappedTextureRenderTarget(GrVkGpu* gpu,
229 return Make(gpu, desc, *info, mipMapsStatus, SkBudgeted::kNo, ownership, true);
232 bool GrVkTextureRenderTarget::updateForMipmap(GrVkGpu* gpu, const GrVkImageInfo& newInfo) {
237 GrVkImageView::Create(gpu,
245 fResolveAttachmentView->unref(gpu);
248 const GrVkImageView* colorAttachmentView = GrVkImageView::Create(gpu,
256 fColorAttachmentView->unref(gpu);
260 this->createFramebuffer(gpu);