Optimize DrawCall to pack indirect draw arg and graphics draw data with union
This commit is contained in:
@@ -353,8 +353,6 @@ void SplineModel::Draw(RenderContext& renderContext)
|
||||
// Draw all segments
|
||||
DrawCall drawCall;
|
||||
drawCall.InstanceCount = 1;
|
||||
drawCall.IndirectArgsBuffer = nullptr;
|
||||
drawCall.IndirectArgsOffset = 0;
|
||||
drawCall.Deformable.SplineDeformation = _deformationBuffer;
|
||||
drawCall.Deformable.ChunksPerSegment = _chunksPerSegment;
|
||||
drawCall.Deformable.MeshMinZ = _meshMinZ;
|
||||
|
||||
Reference in New Issue
Block a user