summaryrefslogtreecommitdiffstats
path: root/src/3rdparty/angle/src/libANGLE/Sampler.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/3rdparty/angle/src/libANGLE/Sampler.h')
-rw-r--r--src/3rdparty/angle/src/libANGLE/Sampler.h19
1 files changed, 12 insertions, 7 deletions
diff --git a/src/3rdparty/angle/src/libANGLE/Sampler.h b/src/3rdparty/angle/src/libANGLE/Sampler.h
index a40b1655fc..cd34273b44 100644
--- a/src/3rdparty/angle/src/libANGLE/Sampler.h
+++ b/src/3rdparty/angle/src/libANGLE/Sampler.h
@@ -16,7 +16,7 @@
namespace rx
{
-class ImplFactory;
+class GLImplFactory;
class SamplerImpl;
}
@@ -26,9 +26,11 @@ namespace gl
class Sampler final : public RefCountObject, public LabeledObject
{
public:
- Sampler(rx::ImplFactory *factory, GLuint id);
+ Sampler(rx::GLImplFactory *factory, GLuint id);
~Sampler() override;
+ Error onDestroy(const Context *context) override;
+
void setLabel(const std::string &label) override;
const std::string &getLabel() const override;
@@ -62,19 +64,22 @@ class Sampler final : public RefCountObject, public LabeledObject
void setCompareFunc(GLenum compareFunc);
GLenum getCompareFunc() const;
+ void setSRGBDecode(GLenum sRGBDecode);
+ GLenum getSRGBDecode() const;
+
const SamplerState &getSamplerState() const;
- const rx::SamplerImpl *getImplementation() const;
- rx::SamplerImpl *getImplementation();
+ rx::SamplerImpl *getImplementation() const;
+
+ void syncState(const Context *context);
private:
+ SamplerState mState;
rx::SamplerImpl *mImpl;
std::string mLabel;
-
- SamplerState mSamplerState;
};
-}
+} // namespace gl
#endif // LIBANGLE_SAMPLER_H_