D3D11: Use feature level to determine number of maximum compute bindings. Issue #1484.

This commit is contained in:
Branimir Karadžić 2018-09-09 21:11:14 -07:00
parent 2076d5feaf
commit b0c2325a0a

View File

@ -1182,7 +1182,7 @@ namespace bgfx { namespace d3d11
else
{
g_caps.limits.maxComputeBindings = bx::min(BGFX_MAX_COMPUTE_BINDINGS
, 1 <= m_deviceInterfaceVersion
, D3D_FEATURE_LEVEL_11_1 <= m_featureLevel
? D3D11_1_UAV_SLOT_COUNT
: D3D11_PS_CS_UAV_REGISTER_COUNT
);