You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-08 12:40:44 +00:00
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