Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(367)

Unified Diff: src/gpu/vk/GrVkTexture.cpp

Issue 1782583002: Add support for vertex and geometry shader textures (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: better rebase Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/gpu/vk/GrVkProgramBuilder.cpp ('k') | tests/EGLImageTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/vk/GrVkTexture.cpp
diff --git a/src/gpu/vk/GrVkTexture.cpp b/src/gpu/vk/GrVkTexture.cpp
index c8247ca2f632b54f8ab15ed4a44b536d7071d25c..5c4c3bd6c757b72a272eb54d70659251ae57c921 100644
--- a/src/gpu/vk/GrVkTexture.cpp
+++ b/src/gpu/vk/GrVkTexture.cpp
@@ -20,7 +20,8 @@ GrVkTexture::GrVkTexture(GrVkGpu* gpu,
const GrVkImageView* view)
: GrSurface(gpu, lifeCycle, desc)
, GrVkImage(imageResource)
- , INHERITED(gpu, lifeCycle, desc, false) // false because we don't upload MIP data in Vk yet
+ , INHERITED(gpu, lifeCycle, desc, kSampler2D_GrSLType,
+ false) // false because we don't upload MIP data in Vk yet
, fTextureView(view) {
this->registerWithCache();
}
@@ -34,7 +35,8 @@ GrVkTexture::GrVkTexture(GrVkGpu* gpu,
Derived)
: GrSurface(gpu, lifeCycle, desc)
, GrVkImage(imageResource)
- , INHERITED(gpu, lifeCycle, desc, false) // false because we don't upload MIP data in Vk yet
+ , INHERITED(gpu, lifeCycle, desc, kSampler2D_GrSLType,
+ false) // false because we don't upload MIP data in Vk yet
, fTextureView(view) {}
« no previous file with comments | « src/gpu/vk/GrVkProgramBuilder.cpp ('k') | tests/EGLImageTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698