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

Unified Diff: include/gpu/GrTexture.h

Issue 1782583002: Add support for vertex and geometry shader textures (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 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 | « no previous file | include/gpu/GrTextureAccess.h » ('j') | src/gpu/gl/builders/GrGLProgramBuilder.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/gpu/GrTexture.h
diff --git a/include/gpu/GrTexture.h b/include/gpu/GrTexture.h
index a25c1023c8a01af14f3f916a3f0b1321b7b0ab81..be4cce6fb4bff52d8565297d1313e3601211eae0 100644
--- a/include/gpu/GrTexture.h
+++ b/include/gpu/GrTexture.h
@@ -22,6 +22,11 @@ public:
const GrTexture* asTexture() const override { return this; }
/**
+ * Returns the sampler type used to access this texture in a shader.
+ */
+ virtual GrSLType getSamplerType() const = 0;
+
+ /**
* Return the native ID or handle to the texture, depending on the
* platform. e.g. on OpenGL, return the texture ID.
*/
« no previous file with comments | « no previous file | include/gpu/GrTextureAccess.h » ('j') | src/gpu/gl/builders/GrGLProgramBuilder.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698