Lines Matching defs:buffer
30 * At creation time a minimum per-buffer size can be specified. Additionally,
40 * cpu buffer allocations to avoid reallocating them.
84 * GPU buffer objects.
91 * Returns a block of memory to hold data. A buffer designated to hold the
92 * data is given to the caller. The buffer may or may not be locked. The
100 * buffer at the offset indicated by offset. Until that time it may be
101 * in temporary storage and/or the buffer may be locked.
104 * @param alignment alignment constraint from start of buffer
105 * @param buffer returns the buffer that will hold the data.
106 * @param offset returns the offset into buffer of the data.
109 void* makeSpace(size_t size, size_t alignment, sk_sp<const GrBuffer>* buffer, size_t* offset);
112 * Returns a block of memory to hold data. A buffer designated to hold the
113 * data is given to the caller. The buffer may or may not be locked. The
121 * buffer at the offset indicated by offset. Until that time it may be
122 * in temporary storage and/or the buffer may be locked.
130 * @param alignment alignment constraint from start of buffer
131 * @param buffer returns the buffer that will hold the data.
132 * @param offset returns the offset into buffer of the data.
139 sk_sp<const GrBuffer>* buffer,
180 * GPU buffer objects.
185 * Returns a block of memory to hold vertices. A buffer designated to hold
186 * the vertices given to the caller. The buffer may or may not be locked.
194 * the buffer at the offset indicated by startVertex. Until that time they
195 * may be in temporary storage and/or the buffer may be locked.
199 * @param buffer returns the vertex buffer that will hold the
201 * @param startVertex returns the offset into buffer of the first vertex.
207 sk_sp<const GrBuffer>* buffer,
211 * Returns a block of memory to hold vertices. A buffer designated to hold
212 * the vertices given to the caller. The buffer may or may not be locked.
220 * the buffer at the offset indicated by startVertex. Until that time they
221 * may be in temporary storage and/or the buffer may be locked.
231 * @param buffer returns the vertex buffer that will hold the vertices.
232 * @param startVertex returns the offset into buffer of the first vertex.
240 sk_sp<const GrBuffer>* buffer,
259 * GPU buffer objects.
264 * Returns a block of memory to hold indices. A buffer designated to hold
265 * the indices is given to the caller. The buffer may or may not be locked.
273 * buffer at the offset indicated by startIndex. Until that time they may be
274 * in temporary storage and/or the buffer may be locked.
277 * @param buffer returns the index buffer that will hold the indices.
278 * @param startIndex returns the offset into buffer of the first index.
281 void* makeSpace(int indexCount, sk_sp<const GrBuffer>* buffer, int* startIndex);
284 * Returns a block of memory to hold indices. A buffer designated to hold
285 * the indices is given to the caller. The buffer may or may not be locked.
293 * buffer at the offset indicated by startIndex. Until that time they may be
294 * in temporary storage and/or the buffer may be locked.
303 * @param buffer returns the index buffer that will hold the indices.
304 * @param startIndex returns the offset into buffer of the first index.
310 sk_sp<const GrBuffer>* buffer,
323 GrDrawIndirectWriter makeSpace(int drawCount, sk_sp<const GrBuffer>* buffer, size_t* offset) {
325 buffer, offset);
332 GrDrawIndexedIndirectWriter makeIndexedSpace(int drawCount, sk_sp<const GrBuffer>* buffer,
335 drawCount * sizeof(GrDrawIndexedIndirectCommand), 4, buffer, offset);