Lines Matching full:allocation
32 * allocation that is provided separately, as multiple allocation
90 Allocation[] mVertexBuffers;
91 Allocation[] mIndexBuffers;
112 * @return vertex data allocation at the given index
115 public Allocation getVertexAllocation(int slot) {
133 * @param slot locaton within the list of index set allocation
134 * @return allocation containing primtive index data or null if
138 public Allocation getIndexSetAllocation(int slot) {
164 mVertexBuffers = new Allocation[vtxCount];
165 mIndexBuffers = new Allocation[idxCount];
170 mVertexBuffers[i] = new Allocation(vtxIDs[i], mRS, null, Allocation.USAGE_SCRIPT);
177 mIndexBuffers[i] = new Allocation(idxIDs[i], mRS, null, Allocation.USAGE_SCRIPT);
245 * @param t type of the vertex data allocation to be created
357 Allocation[] vertexBuffers = new Allocation[mVertexTypeCount];
358 Allocation[] indexBuffers = new Allocation[mIndexTypes.size()];
362 Allocation alloc = null;
365 alloc = Allocation.createTyped(mRS, entry.t, mUsage);
367 alloc = Allocation.createSized(mRS, entry.e, entry.size, mUsage);
374 Allocation alloc = null;
377 alloc = Allocation.createTyped(mRS, entry.t, mUsage);
379 alloc = Allocation.createSized(mRS, entry.e, entry.size, mUsage);
410 Allocation a;
449 * Adds an allocation containing vertex buffer data to the
452 * @param a vertex data allocation
456 public AllocationBuilder addVertexAllocation(Allocation a) throws IllegalStateException {
469 * Adds an allocation containing index buffer data and index type
472 * @param a index set data allocation, could be null
477 public AllocationBuilder addIndexSetAllocation(Allocation a, Primitive p) {
513 Allocation[] indexBuffers = new Allocation[mIndexTypes.size()];
515 Allocation[] vertexBuffers = new Allocation[mVertexTypeCount];
803 int usage = Allocation.USAGE_SCRIPT;
805 usage |= Allocation.USAGE_GRAPHICS_VERTEX;
817 sm.getVertexAllocation(0).syncAll(Allocation.USAGE_SCRIPT);
823 sm.getIndexSetAllocation(0).syncAll(Allocation.USAGE_SCRIPT);