Lines Matching refs:mIndexBuffer
373 StreamingIndexBuffer::StreamingIndexBuffer(size_t initialSize) : mIndexBuffer(NULL), mBufferSize(in… in StreamingIndexBuffer()
377 mIndexBuffer = new sw::Resource(initialSize + 16); in StreamingIndexBuffer()
379 if(!mIndexBuffer) in StreamingIndexBuffer()
390 if(mIndexBuffer) in ~StreamingIndexBuffer()
392 mIndexBuffer->destruct(); in ~StreamingIndexBuffer()
400 if(mIndexBuffer) in map()
402 mapPtr = (char*)mIndexBuffer->lock(sw::PUBLIC) + mWritePosition; in map()
419 if(mIndexBuffer) in unmap()
421 mIndexBuffer->unlock(); in unmap()
429 if(mIndexBuffer) in reserveSpace()
431 mIndexBuffer->destruct(); in reserveSpace()
432 mIndexBuffer = 0; in reserveSpace()
437 mIndexBuffer = new sw::Resource(mBufferSize + 16); in reserveSpace()
439 if(!mIndexBuffer) in reserveSpace()
448 if(mIndexBuffer) in reserveSpace()
450 mIndexBuffer->destruct(); in reserveSpace()
451 mIndexBuffer = new sw::Resource(mBufferSize + 16); in reserveSpace()
460 return mIndexBuffer; in getResource()