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;
111 * @return vertex data allocation at the given index
114 public Allocation getVertexAllocation(int slot) {
132 * @param slot locaton within the list of index set allocation
133 * @return allocation containing primtive index data or null if
137 public Allocation getIndexSetAllocation(int slot) {
163 mVertexBuffers = new Allocation[vtxCount];
164 mIndexBuffers = new Allocation[idxCount];
169 mVertexBuffers[i] = new Allocation(vtxIDs[i], mRS, null, Allocation.USAGE_SCRIPT);
176 mIndexBuffers[i] = new Allocation(idxIDs[i], mRS, null, Allocation.USAGE_SCRIPT);
244 * @param t type of the vertex data allocation to be created
356 Allocation[] vertexBuffers = new Allocation[mVertexTypeCount];
357 Allocation[] indexBuffers = new Allocation[mIndexTypes.size()];
361 Allocation alloc = null;
364 alloc = Allocation.createTyped(mRS, entry.t, mUsage);
366 alloc = Allocation.createSized(mRS, entry.e, entry.size, mUsage);
376 Allocation alloc = null;
379 alloc = Allocation.createTyped(mRS, entry.t, mUsage);
381 alloc = Allocation.createSized(mRS, entry.e, entry.size, mUsage);
415 Allocation a;
454 * Adds an allocation containing vertex buffer data to the
457 * @param a vertex data allocation
461 public AllocationBuilder addVertexAllocation(Allocation a) throws IllegalStateException {
474 * Adds an allocation containing index buffer data and index type
477 * @param a index set data allocation, could be null
482 public AllocationBuilder addIndexSetAllocation(Allocation a, Primitive p) {
518 Allocation[] indexBuffers = new Allocation[mIndexTypes.size()];
520 Allocation[] vertexBuffers = new Allocation[mVertexTypeCount];
808 int usage = Allocation.USAGE_SCRIPT;
810 usage |= Allocation.USAGE_GRAPHICS_VERTEX;
821 sm.getVertexAllocation(0).syncAll(Allocation.USAGE_SCRIPT);
826 sm.getIndexSetAllocation(0).syncAll(Allocation.USAGE_SCRIPT);