Torque3D Documentation / _generateds / GFXD3D11PrimitiveBuffer

GFXD3D11PrimitiveBuffer

Engine/source/gfx/D3D11/gfxD3D11PrimitiveBuffer.h

More...

Public Functions

GFXD3D11PrimitiveBuffer(GFXDevice * device, U32 indexCount, U32 primitiveCount, GFXBufferType bufferType)
lock(U32 indexStart, U32 indexEnd, void ** indexPtr)

locks this primitive buffer for writing into

prepares this primitive buffer for use on the device it was allocated on

When called the resource should restore all device sensitive information destroyed by zombify()

unlocks this primitive buffer.

When called the resource should destroy all device sensitive information (e.g. D3D resources in D3DPOOL_DEFAULT.

Detailed Description

Public Attributes

ID3D11Buffer * ib 
U32 mIndexEnd 
U32 mIndexStart 
bool mIsFirstLock 
bool mLocked 
TORQUE_DEBUG void * mLockedBuffer 
StrongRefPtr< GFXD3D11PrimitiveBuffer > mVolatileBuffer 
U32 mVolatileStart 

Public Functions

GFXD3D11PrimitiveBuffer(GFXDevice * device, U32 indexCount, U32 primitiveCount, GFXBufferType bufferType)

~GFXD3D11PrimitiveBuffer()

lock(U32 indexStart, U32 indexEnd, void ** indexPtr)

Reimplemented from: GFXPrimitiveBuffer

prepare()

Reimplemented from: GFXPrimitiveBuffer

resurrect()

Reimplemented from: GFXResource

unlock()

Reimplemented from: GFXPrimitiveBuffer

zombify()

Reimplemented from: GFXResource