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

Method createStateBlock

Engine/source/gfx/gfxDevice.cpp:290–302  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

288}
289
290GFXStateBlockRef GFXDevice::createStateBlock(const GFXStateBlockDesc& desc)
291{
292 PROFILE_SCOPE( GFXDevice_CreateStateBlock );
293
294 U32 hashValue = desc.getHashValue();
295 if (mCurrentStateBlocks[hashValue])
296 return mCurrentStateBlocks[hashValue];
297
298 GFXStateBlockRef result = createStateBlockInternal(desc);
299 result->registerResourceWithDevice(this);
300 mCurrentStateBlocks[hashValue] = result;
301 return result;
302}
303
304void GFXDevice::setStateBlock(GFXStateBlock* block)
305{

Callers 15

setStateBlockMethod · 0.80
initGFXResourcesMethod · 0.80
initShaderMethod · 0.80
initShaderMethod · 0.80
initShaderMethod · 0.80
initShaderMethod · 0.80
_renderAxisLinesMethod · 0.80
_renderBillboardMethod · 0.80
_renderZodiacPlaneMethod · 0.80
setStateBlockMethod · 0.80
renderDebugNormalsMethod · 0.80
_setupStateBlockMethod · 0.80

Calls 2

getHashValueMethod · 0.45

Tested by

no test coverage detected