Go to the documentation of this file.
28 #ifndef __D3D11HARDWAREVERTEXBUFFER_H__
29 #define __D3D11HARDWAREVERTEXBUFFER_H__
54 void readData(
size_t offset,
size_t length,
void* pDest);
55 void writeData(
size_t offset,
size_t length,
const void* pSource,
56 bool discardWholeBuffer =
false);
59 size_t dstOffset,
size_t length,
bool discardWholeBuffer =
false);
void * lockImpl(size_t offset, size_t length, LockOptions options)
Internal implementation of lock()
D3D11HardwareVertexBuffer(HardwareBufferManagerBase *mgr, size_t vertexSize, size_t numVertices, HardwareBuffer::Usage usage, D3D11Device &device, bool useSystemMem, bool useShadowBuffer, bool streamOut)
~D3D11HardwareVertexBuffer()
void readData(size_t offset, size_t length, void *pDest)
Reads data from the buffer and places it in the memory pointed to by pDest.
void unlock(void)
Releases the lock on this buffer.
Base definition of a hardware buffer manager.
D3D11HardwareBuffer * mBufferImpl
Specialisation of HardwareVertexBuffer for D3D11.
void unlockImpl(void)
Internal implementation of unlock()
bool recreateIfDefaultPool(D3D11Device &device)
For dealing with lost devices - recreate the resource if in the default pool.
bool releaseIfDefaultPool(void)
For dealing with lost devices - release the resource if in the default pool.
Abstract class defining common features of hardware buffers.
bool isLocked(void) const
void writeData(size_t offset, size_t length, const void *pSource, bool discardWholeBuffer=false)
Writes data to the buffer from an area of system memory; note that you must ensure that your buffer i...
Base implementation of a D3D11 buffer, dealing with all the common aspects.
Specialisation of HardwareBuffer for a vertex buffer.
ID3D11Buffer * getD3DVertexBuffer(void) const
Get the D3D-specific vertex buffer.
Usage
Enums describing buffer usage; not mutually exclusive.
LockOptions
Locking options.
void * lock(size_t offset, size_t length, LockOptions options)
Lock the buffer for (potentially) reading / writing.
void copyData(HardwareBuffer &srcBuffer, size_t srcOffset, size_t dstOffset, size_t length, bool discardWholeBuffer=false)
Copy data from another buffer into this one.
Copyright © 2012 Torus Knot Software Ltd

This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
Last modified Tue Apr 13 2021 08:53:15