From 718cd1f322ee5b62b6a49cb36195bcb18a5ab711 Mon Sep 17 00:00:00 2001 From: Jason Sams Date: Wed, 23 Dec 2009 14:35:29 -0800 Subject: Element restructuring. Add support for new basic Element types including the RS objects and vectors(2-4). In theory this paves the way for maintaining type info for RS objects, passing elements for GLSL uiforms/attribs/varyings, and supporting nested structures. This will break some apps, checkings for other projects will follow to unbreak them. --- graphics/java/android/renderscript/ProgramVertex.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'graphics/java/android/renderscript/ProgramVertex.java') diff --git a/graphics/java/android/renderscript/ProgramVertex.java b/graphics/java/android/renderscript/ProgramVertex.java index 101f030..84f6f2d 100644 --- a/graphics/java/android/renderscript/ProgramVertex.java +++ b/graphics/java/android/renderscript/ProgramVertex.java @@ -107,7 +107,7 @@ public class ProgramVertex extends Program { mProjection = new Matrix(); mTexture = new Matrix(); - mAlloc = Allocation.createSized(rs, Element.USER_F32(rs), 48); + mAlloc = Allocation.createSized(rs, Element.createUser(rs, Element.DataType.FLOAT_32), 48); mAlloc.subData1D(MODELVIEW_OFFSET, 16, mModel.mMat); mAlloc.subData1D(PROJECTION_OFFSET, 16, mProjection.mMat); mAlloc.subData1D(TEXTURE_OFFSET, 16, mTexture.mMat); -- cgit v1.1