thatcosmonaut / SDL

Simple Directmedia Layer
https://libsdl.org
zlib License
1 stars 2 forks source link

D3D11: Can we target FL 11_0? #69

Closed TheSpydog closed 2 days ago

TheSpydog commented 4 days ago

Right now for D3D11 we're targeting feature level 11_1, but I don't think that's strictly necessary. Looking at the feature level support table the only feature we use from 11.1 is constant buffer offsets/partial updates, which is optionally supported on 11.0 hardware.

We can probably drop to 11.0 with a feature check in PrepareDriver. This does require the D3D11.1 runtime, but that's supported on Windows 8+ so it should cover basically everybody. (Note that the 11.1 runtime is different from Feature Level 11_1... it's a very confusing naming scheme.)

TheSpydog commented 2 days ago

I failed to notice the limitation of 8 total bound UAVs, which isn't enough for our requirements of 8 storage textures + 8 storage buffers. If the feature level ever becomes an issue in practice, everything else seems to work with FL 11_0, so we could mayyyybe hack in some compatibility mode that caps the UAVs to 8 in total, but that's probably not necessary. Closing.