Home | History | Annotate | Download | only in gpu

Lines Matching refs:Draw

146             Draw& lastDraw = fDraws.back();
202 Draw& draw = fDraws.push_back();
203 draw.fPrimitiveType = primitiveType;
204 draw.fStartVertex = startVertex;
205 draw.fStartIndex = startIndex;
206 draw.fVertexCount = vertexCount;
207 draw.fIndexCount = indexCount;
209 draw.fClipChanged = this->needsNewClip();
210 if (draw.fClipChanged) {
214 draw.fStateChanged = this->needsNewState();
215 if (draw.fStateChanged) {
219 draw.fVertexLayout = this->getGeomSrc().fVertexLayout;
222 draw.fVertexBuffer = this->getGeomSrc().fVertexBuffer;
230 draw.fVertexBuffer = poolState.fPoolVertexBuffer;
231 draw.fStartVertex += poolState.fPoolStartVertex;
237 draw.fVertexBuffer->ref();
241 draw.fIndexBuffer = this->getGeomSrc().fIndexBuffer;
248 draw.fIndexBuffer = poolState.fPoolIndexBuffer;
249 draw.fStartIndex += poolState.fPoolStartIndex;
255 draw.fIndexBuffer->ref();
269 Draw& draw = fDraws.push_back();
270 draw.fPrimitiveType = primitiveType;
271 draw.fStartVertex = startVertex;
272 draw.fStartIndex = 0;
273 draw.fVertexCount = vertexCount;
274 draw.fIndexCount = 0;
276 draw.fClipChanged = this->needsNewClip();
277 if (draw.fClipChanged) {
281 draw.fStateChanged = this->needsNewState();
282 if (draw.fStateChanged) {
286 draw.fVertexLayout = this->getGeomSrc().fVertexLayout;
289 draw.fVertexBuffer = this->getGeomSrc().fVertexBuffer;
297 draw.fVertexBuffer = poolState.fPoolVertexBuffer;
298 draw.fStartVertex += poolState.fPoolStartVertex;
304 draw.fVertexBuffer->ref();
305 draw.fIndexBuffer = NULL;
386 const Draw& draw = fDraws[i];
387 if (draw.fStateChanged) {
391 if (draw.fClipChanged) {
396 target->setVertexSourceToBuffer(draw.fVertexLayout, draw.fVertexBuffer);
398 if (draw.fIndexCount) {
399 target->setIndexSourceToBuffer(draw.fIndexBuffer);
402 if (draw.fIndexCount) {
403 target->drawIndexed(draw.fPrimitiveType,
404 draw.fStartVertex,
405 draw.fStartIndex,
406 draw.fVertexCount,
407 draw.fIndexCount);
409 target->drawNonIndexed(draw.fPrimitiveType,
410 draw.fStartVertex,
411 draw.fVertexCount);