Added TEXTURE_SWIZZLE_* parameters to the texture sampler state and API queries.
Change-Id: I20aff392ec4cd9e49424afae94a862fdd8eef9b8
Reviewed-on: https://chromium-review.googlesource.com/177030
Reviewed-by: Shannon Woods <shannonwoods@chromium.org>
Commit-Queue: Shannon Woods <shannonwoods@chromium.org>
Tested-by: Shannon Woods <shannonwoods@chromium.org>
diff --git a/src/libGLESv2/Texture.h b/src/libGLESv2/Texture.h
index 07bef2e..9107156 100644
--- a/src/libGLESv2/Texture.h
+++ b/src/libGLESv2/Texture.h
@@ -77,6 +77,10 @@
void setMaxAnisotropy(float textureMaxAnisotropy, float contextMaxAnisotropy);
void setCompareMode(GLenum mode);
void setCompareFunc(GLenum func);
+ void setSwizzleRed(GLenum swizzle);
+ void setSwizzleGreen(GLenum swizzle);
+ void setSwizzleBlue(GLenum swizzle);
+ void setSwizzleAlpha(GLenum swizzle);
void setUsage(GLenum usage);
GLenum getMinFilter() const;
@@ -85,6 +89,11 @@
GLenum getWrapT() const;
GLenum getWrapR() const;
float getMaxAnisotropy() const;
+ GLenum getSwizzleRed() const;
+ GLenum getSwizzleGreen() const;
+ GLenum getSwizzleBlue() const;
+ GLenum getSwizzleAlpha() const;
+ bool isSwizzled() const;
int getLodOffset();
void getSamplerState(SamplerState *sampler);
GLenum getUsage() const;