small simplification, stackvector not needed
This commit is contained in:
@@ -4138,12 +4138,11 @@ std::mutex queue_locker;
|
||||
}
|
||||
stream.stream1.BD = bd;
|
||||
|
||||
StackVector<D3D12_INPUT_ELEMENT_DESC, D3D12_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT> elements;
|
||||
D3D12_INPUT_ELEMENT_DESC elements[D3D12_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT] = {};
|
||||
D3D12_INPUT_LAYOUT_DESC il = {};
|
||||
if (pso->desc.il != nullptr)
|
||||
{
|
||||
il.NumElements = std::min((uint32_t)pso->desc.il->elements.size(), (uint32_t)D3D12_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT);
|
||||
elements.resize(il.NumElements);
|
||||
for (uint32_t i = 0; i < il.NumElements; ++i)
|
||||
{
|
||||
elements[i].SemanticName = pso->desc.il->elements[i].semantic_name.c_str();
|
||||
@@ -4160,7 +4159,7 @@ std::mutex queue_locker;
|
||||
elements[i].InstanceDataStepRate = 1;
|
||||
}
|
||||
}
|
||||
il.pInputElementDescs = elements.data();
|
||||
il.pInputElementDescs = elements;
|
||||
}
|
||||
stream.stream1.IL = il;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user