summaryrefslogtreecommitdiff
path: root/scriptc
diff options
context:
space:
mode:
authorTim Murray <timmurray@google.com>2012-10-17 11:43:50 -0700
committerTim Murray <timmurray@google.com>2012-10-19 15:20:56 -0700
commitcc63efec740bccb21fc62f75c2a136cc9658966e (patch)
tree25e97bc1295ab3d4ee652860fa587ef86e95cf60 /scriptc
parentb2c9435986ac48cc903927973c130bdb62d4d233 (diff)
downloadrs-cc63efec740bccb21fc62f75c2a136cc9658966e.tar.gz
Add 1D and 2D rsSetElementAt.
Change-Id: Id1861ef6921b1533f286eb201c4ed149243f9b5a
Diffstat (limited to 'scriptc')
-rw-r--r--scriptc/rs_allocation.rsh17
1 files changed, 16 insertions, 1 deletions
diff --git a/scriptc/rs_allocation.rsh b/scriptc/rs_allocation.rsh
index 42d27bc8..a3a77788 100644
--- a/scriptc/rs_allocation.rsh
+++ b/scriptc/rs_allocation.rsh
@@ -204,7 +204,7 @@ GET_ELEMENT_AT(double4)
#undef GET_ELEMENT_AT
-// New API's
+// Jelly Bean
#if (defined(RS_VERSION) && (RS_VERSION >= 16))
/**
@@ -273,5 +273,20 @@ extern const float4 __attribute__((overloadable))
#endif // (defined(RS_VERSION) && (RS_VERSION >= 16))
+#if (defined(RS_VERSION) && (RS_VERSION >= 18))
+
+/**
+ * Set single element of an allocation.
+ */
+extern void __attribute__((overloadable))
+ rsSetElementAt(rs_allocation a, void* ptr, uint32_t x);
+
+/**
+ * \overload
+ */
+extern void __attribute__((overloadable))
+ rsSetElementAt(rs_allocation a, void* ptr, uint32_t x, uint32_t y);
+#endif // (defined(RS_VERSION) && (RS_VERSION >= 18))
+
#endif