| 20 | static const uint64 MaxSubObjDescSize = 512; |
| 21 | |
| 22 | void 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 | |
| 33 | const D3D12_STATE_SUBOBJECT* StateObjectBuilder::AddSubObject(const void* subObjDesc, uint64 subObjDescSize, D3D12_STATE_SUBOBJECT_TYPE type) |
| 34 | { |
no outgoing calls
no test coverage detected