MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / immutable

Method immutable

Engine/source/gfx/gfxPrimitiveBuffer.cpp:87–95  ·  view source on GitHub ↗

----------------------------------------------------------------------------- immutable -----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

85// immutable
86//-----------------------------------------------------------------------------
87void GFXPrimitiveBufferHandle::immutable(GFXDevice *theDevice, U32 indexCount, U32 primitiveCount, void* data, String desc)
88{
89 StrongRefPtr<GFXPrimitiveBuffer>::operator=( theDevice->allocPrimitiveBuffer(indexCount, primitiveCount, GFXBufferTypeImmutable, data) );
90
91#ifdef TORQUE_DEBUG
92 if( desc.isNotEmpty() )
93 getPointer()->mDebugCreationPath = desc;
94#endif
95}

Callers 1

_initGFXResourcesMethod · 0.80

Calls 3

operator=Function · 0.50
allocPrimitiveBufferMethod · 0.45
isNotEmptyMethod · 0.45

Tested by

no test coverage detected