On Fri Sep 2 05:29:31 2022 +0000, Nikolay Sivov wrote:
Is it possible for node input count to change? If it's constant, this array could be created on node creation.
Node input count is a constant. And `AddNode()` is the place where we create `d2d_transform_node`.
`d2d_transform_node` is not node object itself. In fact it is a wrapper of `ID2D1TransformNode` and holds a reference to it. `ID2D1TransformNode` is the real node object.
I think `d2d_transform_node` should relies on `ID2D1TransformNode` interface, instead of concrete implementation of `ID2D1TransformNode`. So this array should be in `d2d_transform_node`. And we create this array in `AddNode()` where we create our `d2d_transform_node`.