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

D3D12: Better ResourceDescription support for signed numbers #313

Closed Axiverse closed 2 years ago

Axiverse commented 2 years ago

.Net prefers signed numbers even when the numbers should only be unsigned. As such, we should allow overrides creating resources with them.

Axiverse commented 2 years ago

Also prefer long over int to support a wider range of numbers and ints will automatically get elevated to longs anyhow.