MCPcopy Create free account
hub / github.com/TheRealMJP/SHforHLSL / Init

Method Init

SHTest/SampleFramework12/v1.04/Graphics/DXRHelper.cpp:22–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20static const uint64 MaxSubObjDescSize = 512;
21
22void StateObjectBuilder::Init(uint64 maxSubObjects)
23{
24 Assert_(maxSubObjects > 0);
25
26 MaxSubObjects = maxSubObjects;
27 SubObjectData.Init(maxSubObjects * MaxSubObjDescSize, 0);
28
29 D3D12_STATE_SUBOBJECT defSubObj = { };
30 SubObjects.Init(maxSubObjects, defSubObj);
31}
32
33const D3D12_STATE_SUBOBJECT* StateObjectBuilder::AddSubObject(const void* subObjDesc, uint64 subObjDescSize, D3D12_STATE_SUBOBJECT_TYPE type)
34{

Callers 1

BuildSceneAccelStructureFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected