Home | History | Annotate | Download | only in vk

Lines Matching refs:gpu

18 #define VK_CALL(GPU, X) GR_VK_CALL(GPU->vkInterface(), X)
26 GrVkTexture::GrVkTexture(GrVkGpu* gpu,
32 : GrSurface(gpu, desc)
34 , INHERITED(gpu, desc, kTexture2DSampler_GrSLType, highest_filter_mode(desc.fConfig),
42 GrVkTexture::GrVkTexture(GrVkGpu* gpu,
49 : GrSurface(gpu, desc)
51 , INHERITED(gpu, desc, kTexture2DSampler_GrSLType, highest_filter_mode(desc.fConfig),
60 GrVkTexture::GrVkTexture(GrVkGpu* gpu,
66 : GrSurface(gpu, desc)
68 , INHERITED(gpu, desc, kTexture2DSampler_GrSLType, highest_filter_mode(desc.fConfig),
75 sk_sp<GrVkTexture> GrVkTexture::CreateNewTexture(GrVkGpu* gpu, SkBudgeted budgeted,
82 if (!GrVkImage::InitImageInfo(gpu, imageDesc, &info)) {
86 const GrVkImageView* imageView = GrVkImageView::Create(gpu, info.fImage, info.fFormat,
90 GrVkImage::DestroyImageInfo(gpu, &info);
94 return sk_sp<GrVkTexture>(new GrVkTexture(gpu, budgeted, desc, info, imageView,
98 sk_sp<GrVkTexture> GrVkTexture::MakeWrappedTexture(GrVkGpu* gpu,
106 const GrVkImageView* imageView = GrVkImageView::Create(gpu, info->fImage, info->fFormat,
118 return sk_sp<GrVkTexture>(new GrVkTexture(gpu, kWrapped, desc, *info, imageView,
189 bool GrVkTexture::reallocForMipmap(GrVkGpu* gpu, uint32_t mipLevels) {
222 if (!GrVkImage::InitImageInfo(gpu, imageDesc, &info)) {
229 const GrVkImageView* textureView = GrVkImageView::Create(gpu, image, info.fFormat,
232 GrVkImage::DestroyImageInfo(gpu, &info);
238 if (!texRT->updateForMipmap(gpu, info)) {
239 GrVkImage::DestroyImageInfo(gpu, &info);
244 oldResource->unref(gpu);
245 oldView->unref(gpu);
247 fLinearTextureView->unref(gpu);