Merge pull request #106606 from aaronfranke/pow2_64
Add 64-bit versions of core power of 2 functions
This commit is contained in:
@ -940,7 +940,7 @@ uint32_t RenderingDeviceDriverD3D12::_find_max_common_supported_sample_count(Vec
|
||||
msql.SampleCount = (UINT)samples;
|
||||
HRESULT res = device->CheckFeatureSupport(D3D12_FEATURE_MULTISAMPLE_QUALITY_LEVELS, &msql, sizeof(msql));
|
||||
if (SUCCEEDED(res) && msql.NumQualityLevels) {
|
||||
int bit = get_shift_from_power_of_2(samples);
|
||||
int bit = get_shift_from_power_of_2((uint32_t)samples);
|
||||
ERR_FAIL_COND_V(bit == -1, 1);
|
||||
mask |= (uint32_t)(1 << bit);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user