Home | History | Annotate | Download | only in vk

Lines Matching refs:gpu

18 #define VK_CALL(GPU, X) GR_VK_CALL(GPU->vkInterface(), X)
30 GrVkTexture::GrVkTexture(GrVkGpu* gpu,
36 : GrSurface(gpu, desc)
38 , INHERITED(gpu, desc, kTexture2DSampler_GrSLType, highest_filter_mode(desc.fConfig),
46 GrVkTexture::GrVkTexture(GrVkGpu* gpu,
53 : GrSurface(gpu, desc)
55 , INHERITED(gpu, desc, kTexture2DSampler_GrSLType, highest_filter_mode(desc.fConfig),
64 GrVkTexture::GrVkTexture(GrVkGpu* gpu,
70 : GrSurface(gpu, desc)
72 , INHERITED(gpu, desc, kTexture2DSampler_GrSLType, highest_filter_mode(desc.fConfig),
79 sk_sp<GrVkTexture> GrVkTexture::CreateNewTexture(GrVkGpu* gpu, SkBudgeted budgeted,
86 if (!GrVkImage::InitImageInfo(gpu, imageDesc, &info)) {
90 const GrVkImageView* imageView = GrVkImageView::Create(gpu, info.fImage, info.fFormat,
94 GrVkImage::DestroyImageInfo(gpu, &info);
98 return sk_sp<GrVkTexture>(new GrVkTexture(gpu, budgeted, desc, info, imageView,
102 sk_sp<GrVkTexture> GrVkTexture::MakeWrappedTexture(GrVkGpu* gpu,
110 const GrVkImageView* imageView = GrVkImageView::Create(gpu, info->fImage, info->fFormat,
122 return sk_sp<GrVkTexture>(new GrVkTexture(gpu, kWrapped, desc, *info, imageView,
193 bool GrVkTexture::reallocForMipmap(GrVkGpu* gpu, uint32_t mipLevels) {
226 if (!GrVkImage::InitImageInfo(gpu, imageDesc, &info)) {
233 const GrVkImageView* textureView = GrVkImageView::Create(gpu, image, info.fFormat,
236 GrVkImage::DestroyImageInfo(gpu, &info);
242 if (!texRT->updateForMipmap(gpu, info)) {
243 GrVkImage::DestroyImageInfo(gpu, &info);
248 oldResource->unref(gpu);
249 oldView->unref(gpu);
251 fLinearTextureView->unref(gpu);