summaryrefslogtreecommitdiffstats
path: root/libs/rs/rsSampler.h
diff options
context:
space:
mode:
Diffstat (limited to 'libs/rs/rsSampler.h')
-rw-r--r--libs/rs/rsSampler.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/libs/rs/rsSampler.h b/libs/rs/rsSampler.h
index 0506081..32a8efd 100644
--- a/libs/rs/rsSampler.h
+++ b/libs/rs/rsSampler.h
@@ -41,11 +41,15 @@ public:
virtual ~Sampler();
void bind(Allocation *);
- void setupGL(const Context *, bool npot);
+ void setupGL(const Context *, const Allocation *);
void bindToContext(SamplerState *, uint32_t slot);
void unbindFromContext(SamplerState *);
+ virtual void serialize(OStream *stream) const;
+ virtual RsA3DClassID getClassId() const { return RS_A3D_CLASS_ID_SAMPLER; }
+ static Sampler *createFromStream(Context *rsc, IStream *stream);
+
protected:
RsSamplerValue mMagFilter;
RsSamplerValue mMinFilter;