Any idea why ** is used in this case?
HRESULT CreateSolidColorBrush(
const D2D1_COLOR_F & color,
ID2D1SolidColorBrush** solidColorBrush
);
The above is from Microsoft documentation https://learn.microsoft.com/en-us/windows/win32/api/d2d1/nf-d2d1-id2d1rendertarget-createsolidcolorbrush(constd2d1_color_f__id2d1solidcolorbrush)
What is the benefit of using a pointer to a pointer in this case?
(Why didn't they develop the function that just returned ID2D1SolidColorBrush*)