Home | History | Annotate | Download | only in renderscript

Lines Matching full:allocation

30  * allocation that is provided separately, as multiple allocation
88 Allocation[] mVertexBuffers;
89 Allocation[] mIndexBuffers;
110 * @return vertex data allocation at the given index
113 public Allocation getVertexAllocation(int slot) {
131 * @param slot locaton within the list of index set allocation
132 * @return allocation containing primtive index data or null if
136 public Allocation getIndexSetAllocation(int slot) {
162 mVertexBuffers = new Allocation[vtxCount];
163 mIndexBuffers = new Allocation[idxCount];
168 mVertexBuffers[i] = new Allocation(vtxIDs[i], mRS, null, Allocation.USAGE_SCRIPT);
175 mIndexBuffers[i] = new Allocation(idxIDs[i], mRS, null, Allocation.USAGE_SCRIPT);
243 * @param t type of the vertex data allocation to be created
355 Allocation[] vertexBuffers = new Allocation[mVertexTypeCount];
356 Allocation[] indexBuffers = new Allocation[mIndexTypes.size()];
360 Allocation alloc = null;
363 alloc = Allocation.createTyped(mRS, entry.t, mUsage);
365 alloc = Allocation.createSized(mRS, entry.e, entry.size, mUsage);
372 Allocation alloc = null;
375 alloc = Allocation.createTyped(mRS, entry.t, mUsage);
377 alloc = Allocation.createSized(mRS, entry.e, entry.size, mUsage);
408 Allocation a;
447 * Adds an allocation containing vertex buffer data to the
450 * @param a vertex data allocation
454 public AllocationBuilder addVertexAllocation(Allocation a) throws IllegalStateException {
467 * Adds an allocation containing index buffer data and index type
470 * @param a index set data allocation, could be null
475 public AllocationBuilder addIndexSetAllocation(Allocation a, Primitive p) {
511 Allocation[] indexBuffers = new Allocation[mIndexTypes.size()];
513 Allocation[] vertexBuffers = new Allocation[mVertexTypeCount];
801 int usage = Allocation.USAGE_SCRIPT;
803 usage |= Allocation.USAGE_GRAPHICS_VERTEX;
815 sm.getVertexAllocation(0).syncAll(Allocation.USAGE_SCRIPT);
821 sm.getIndexSetAllocation(0).syncAll(Allocation.USAGE_SCRIPT);