Home | History | Annotate | Download | only in renderscript

Lines Matching full:allocation

31  * allocation that is provided separately, as multiple allocation
89 Allocation[] mVertexBuffers;
90 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);
373 Allocation alloc = null;
376 alloc = Allocation.createTyped(mRS, entry.t, mUsage);
378 alloc = Allocation.createSized(mRS, entry.e, entry.size, mUsage);
409 Allocation a;
448 * Adds an allocation containing vertex buffer data to the
451 * @param a vertex data allocation
455 public AllocationBuilder addVertexAllocation(Allocation a) throws IllegalStateException {
468 * Adds an allocation containing index buffer data and index type
471 * @param a index set data allocation, could be null
476 public AllocationBuilder addIndexSetAllocation(Allocation a, Primitive p) {
512 Allocation[] indexBuffers = new Allocation[mIndexTypes.size()];
514 Allocation[] vertexBuffers = new Allocation[mVertexTypeCount];
802 int usage = Allocation.USAGE_SCRIPT;
804 usage |= Allocation.USAGE_GRAPHICS_VERTEX;
816 sm.getVertexAllocation(0).syncAll(Allocation.USAGE_SCRIPT);
822 sm.getIndexSetAllocation(0).syncAll(Allocation.USAGE_SCRIPT);