Add support for Float64 (double) to RenderScript.
Change-Id: Iad1c4adadf657a46aa38a3fad7813927e643e29d
diff --git a/rsScript.cpp b/rsScript.cpp
index fc22fc3..43bb09e 100644
--- a/rsScript.cpp
+++ b/rsScript.cpp
@@ -101,6 +101,12 @@
s->setVar(slot, &value, sizeof(value));
}
+void rsi_ScriptSetVarD(Context *rsc, RsScript vs, uint32_t slot, double value)
+{
+ Script *s = static_cast<Script *>(vs);
+ s->setVar(slot, &value, sizeof(value));
+}
+
void rsi_ScriptSetVarV(Context *rsc, RsScript vs, uint32_t slot, const void *data, uint32_t len)
{
const float *fp = (const float *)data;