summaryrefslogtreecommitdiff
path: root/rsElement.h
diff options
context:
space:
mode:
authorAlex Sakhartchouk <alexst@google.com>2011-12-15 09:56:10 -0800
committerAlex Sakhartchouk <alexst@google.com>2011-12-15 09:56:28 -0800
commit253325d2a19162c1dd18de59c357e36adf4a760b (patch)
tree0d78e8f030940c5b4304806172edb81af337cd92 /rsElement.h
parentf6216f7699edc83b9c8f8383a6b0448210f0b579 (diff)
downloadrs-253325d2a19162c1dd18de59c357e36adf4a760b.tar.gz
Element HAL sturct, script side getters
Change-Id: If98dd4c22bce58dca2c9739c8aee935a2dd0b493
Diffstat (limited to 'rsElement.h')
-rw-r--r--rsElement.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/rsElement.h b/rsElement.h
index 04010faa..010c6122 100644
--- a/rsElement.h
+++ b/rsElement.h
@@ -28,6 +28,27 @@ namespace renderscript {
// An element is a group of Components that occupies one cell in a structure.
class Element : public ObjectBase {
public:
+ struct Hal {
+ mutable void *drv;
+
+ struct State {
+ RsDataType dataType;
+ RsDataKind dataKind;
+ uint32_t vectorSize;
+ uint32_t elementSizeBytes;
+
+ // Subelements
+ const Element **fields;
+ uint32_t *fieldArraySizes;
+ const char **fieldNames;
+ uint32_t *fieldNameLengths;
+ uint32_t *fieldOffsetBytes;
+ uint32_t fieldsCount;
+ };
+ State state;
+ };
+ Hal mHal;
+
class Builder {
public:
Builder();