Lines Matching refs:mVertexBuffer
211 VertexBuffer::VertexBuffer(unsigned int size) : mVertexBuffer(nullptr) in VertexBuffer()
215 mVertexBuffer = new sw::Resource(size + 1024); in VertexBuffer()
217 if(!mVertexBuffer) in VertexBuffer()
226 if(mVertexBuffer) in ~VertexBuffer()
228 mVertexBuffer->destruct(); in ~VertexBuffer()
234 if(mVertexBuffer) in unmap()
236 mVertexBuffer->unlock(); in unmap()
242 return mVertexBuffer; in getResource()
247 if(mVertexBuffer) in ConstantVertexBuffer()
249 float *vector = (float*)mVertexBuffer->lock(sw::PUBLIC); in ConstantVertexBuffer()
256 mVertexBuffer->unlock(); in ConstantVertexBuffer()
284 if(mVertexBuffer) in map()
287 mapPtr = (char*)mVertexBuffer->lock(sw::PRIVATE) + mWritePosition; in map()
300 if(mVertexBuffer) in reserveRequiredSpace()
302 mVertexBuffer->destruct(); in reserveRequiredSpace()
303 mVertexBuffer = 0; in reserveRequiredSpace()
308 mVertexBuffer = new sw::Resource(mBufferSize); in reserveRequiredSpace()
310 if(!mVertexBuffer) in reserveRequiredSpace()
319 if(mVertexBuffer) in reserveRequiredSpace()
321 mVertexBuffer->destruct(); in reserveRequiredSpace()
322 mVertexBuffer = new sw::Resource(mBufferSize); in reserveRequiredSpace()