Lines Matching refs:mVertexBuffer
239 VertexBuffer::VertexBuffer(unsigned int size) : mVertexBuffer(nullptr) in VertexBuffer()
243 mVertexBuffer = new sw::Resource(size + 1024); in VertexBuffer()
245 if(!mVertexBuffer) in VertexBuffer()
254 if(mVertexBuffer) in ~VertexBuffer()
256 mVertexBuffer->destruct(); in ~VertexBuffer()
262 if(mVertexBuffer) in unmap()
264 mVertexBuffer->unlock(); in unmap()
270 return mVertexBuffer; in getResource()
275 if(mVertexBuffer) in ConstantVertexBuffer()
277 float *vector = (float*)mVertexBuffer->lock(sw::PUBLIC); in ConstantVertexBuffer()
284 mVertexBuffer->unlock(); in ConstantVertexBuffer()
312 if(mVertexBuffer) in map()
315 mapPtr = (char*)mVertexBuffer->lock(sw::PRIVATE) + mWritePosition; in map()
328 if(mVertexBuffer) in reserveRequiredSpace()
330 mVertexBuffer->destruct(); in reserveRequiredSpace()
331 mVertexBuffer = 0; in reserveRequiredSpace()
336 mVertexBuffer = new sw::Resource(mBufferSize); in reserveRequiredSpace()
338 if(!mVertexBuffer) in reserveRequiredSpace()
347 if(mVertexBuffer) in reserveRequiredSpace()
349 mVertexBuffer->destruct(); in reserveRequiredSpace()
350 mVertexBuffer = new sw::Resource(mBufferSize); in reserveRequiredSpace()