Lines Matching refs:mIndexBuffer
154 StreamingIndexBuffer::StreamingIndexBuffer(unsigned int initialSize) : mIndexBuffer(nullptr), mBuff… in StreamingIndexBuffer()
158 mIndexBuffer = new sw::Resource(initialSize + 16); in StreamingIndexBuffer()
160 if(!mIndexBuffer) in StreamingIndexBuffer()
171 if(mIndexBuffer) in ~StreamingIndexBuffer()
173 mIndexBuffer->destruct(); in ~StreamingIndexBuffer()
181 if(mIndexBuffer) in map()
183 mapPtr = (char*)mIndexBuffer->lock(sw::PUBLIC) + mWritePosition; in map()
200 if(mIndexBuffer) in unmap()
202 mIndexBuffer->unlock(); in unmap()
210 if(mIndexBuffer) in reserveSpace()
212 mIndexBuffer->destruct(); in reserveSpace()
213 mIndexBuffer = 0; in reserveSpace()
218 mIndexBuffer = new sw::Resource(mBufferSize + 16); in reserveSpace()
220 if(!mIndexBuffer) in reserveSpace()
229 if(mIndexBuffer) in reserveSpace()
231 mIndexBuffer->destruct(); in reserveSpace()
232 mIndexBuffer = new sw::Resource(mBufferSize + 16); in reserveSpace()
241 return mIndexBuffer; in getResource()