Add 1D and 2D rsSetElementAt.
Change-Id: Id1861ef6921b1533f286eb201c4ed149243f9b5a
diff --git a/scriptc/rs_allocation.rsh b/scriptc/rs_allocation.rsh
index 42d27bc..a3a7778 100644
--- a/scriptc/rs_allocation.rsh
+++ b/scriptc/rs_allocation.rsh
@@ -204,7 +204,7 @@
#undef GET_ELEMENT_AT
-// New API's
+// Jelly Bean
#if (defined(RS_VERSION) && (RS_VERSION >= 16))
/**
@@ -273,5 +273,20 @@
#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