diff options
Diffstat (limited to 'include/private/GrTextureProxy.h')
-rw-r--r-- | include/private/GrTextureProxy.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/private/GrTextureProxy.h b/include/private/GrTextureProxy.h index 61e8020b5a..e14e285d87 100644 --- a/include/private/GrTextureProxy.h +++ b/include/private/GrTextureProxy.h @@ -28,6 +28,14 @@ public: GrSamplerParams::FilterMode highestFilterMode() const; + GrSLType imageStorageType() const { + if (GrPixelConfigIsSint(this->config())) { + return kIImageStorage2D_GrSLType; + } else { + return kImageStorage2D_GrSLType; + } + } + protected: friend class GrSurfaceProxy; // for ctors |