Lines Matching refs:mVertexBuffer
217 VertexBuffer::VertexBuffer(unsigned int size) : mVertexBuffer(nullptr) in VertexBuffer()
221 mVertexBuffer = new sw::Resource(size + 1024); in VertexBuffer()
223 if(!mVertexBuffer) in VertexBuffer()
232 if(mVertexBuffer) in ~VertexBuffer()
234 mVertexBuffer->destruct(); in ~VertexBuffer()
240 if(mVertexBuffer) in unmap()
242 mVertexBuffer->unlock(); in unmap()
248 return mVertexBuffer; in getResource()
253 if(mVertexBuffer) in ConstantVertexBuffer()
255 float *vector = (float*)mVertexBuffer->lock(sw::PUBLIC); in ConstantVertexBuffer()
262 mVertexBuffer->unlock(); in ConstantVertexBuffer()
290 if(mVertexBuffer) in map()
293 mapPtr = (char*)mVertexBuffer->lock(sw::PRIVATE) + mWritePosition; in map()
306 if(mVertexBuffer) in reserveRequiredSpace()
308 mVertexBuffer->destruct(); in reserveRequiredSpace()
309 mVertexBuffer = 0; in reserveRequiredSpace()
314 mVertexBuffer = new sw::Resource(mBufferSize); in reserveRequiredSpace()
316 if(!mVertexBuffer) in reserveRequiredSpace()
325 if(mVertexBuffer) in reserveRequiredSpace()
327 mVertexBuffer->destruct(); in reserveRequiredSpace()
328 mVertexBuffer = new sw::Resource(mBufferSize); in reserveRequiredSpace()