amerkoleci / Vortice.Windows

.NET bindings for Direct3D12, Direct3D11, WIC, Direct2D1, XInput, XAudio, X3DAudio, DXC, Direct3D9 and DirectInput.
MIT License
1.01k stars 73 forks source link

ConvolveMatrix D2D effect parameter error. #412

Closed Steph55 closed 11 months ago

Steph55 commented 11 months ago

The property KernelUnitLehgth in the ConvolveMatrix D2D effect is not only written incorrectly, but I receive the following message when I try to read it or write to it:

SharpGen.Runtime.SharpGenException : 'HRESULT: [0x80070057], Module: [Vortice.Direct2D1], ApiCode: [WINCODEC_ERR_INVALIDPARAMETER/InvalidParameter]

amerkoleci commented 11 months ago

Fixed by: https://github.com/amerkoleci/Vortice.Windows/commit/224188518e6aa24b8c08d6eeb756f66ea2688835

Steph55 commented 11 months ago

The orthographic error is fixed, but I still get the same bug when I read or write to this property:

SharpGen.Runtime.SharpGenException : 'HRESULT: [0x80070057], Module: [Vortice.Direct2D1], ApiCode: [WINCODEC_ERR_INVALIDPARAMETER/InvalidParameter]

amerkoleci commented 11 months ago

Thats direct2d1 error, not vortice, try to ask on directx discord or share some code with me

Steph55 commented 11 months ago

Interesting... I guess this is related to the fact that this attribute is now deprecated in the SVG spec for the feConvolveMatrix filter, so Microsoft seems to be keeping D2D up to date with current trends.