summaryrefslogtreecommitdiffstats
path: root/libs/rs/rsComponent.h
diff options
context:
space:
mode:
Diffstat (limited to 'libs/rs/rsComponent.h')
-rw-r--r--libs/rs/rsComponent.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/libs/rs/rsComponent.h b/libs/rs/rsComponent.h
index 71de324..1bb4ff4 100644
--- a/libs/rs/rsComponent.h
+++ b/libs/rs/rsComponent.h
@@ -25,8 +25,7 @@ namespace renderscript {
// An element is a group of Components that occupies one cell in a structure.
-class Component
-{
+class Component {
public:
Component();
~Component();
@@ -35,7 +34,6 @@ public:
uint32_t getGLType() const;
uint32_t getGLFormat() const;
- String8 getCType() const;
String8 getGLSLType() const;
void dumpLOGV(const char *prefix) const;
@@ -48,6 +46,12 @@ public:
bool getIsSigned() const {return mIsSigned;}
uint32_t getBits() const {return mBits;}
+ // Helpers for reading / writing this class out
+ void serialize(OStream *stream) const;
+ void loadFromStream(IStream *stream);
+
+ bool isReference() const;
+
protected:
RsDataType mType;
RsDataKind mKind;