Skip to content

Commit 131fefd

Browse files
committed
Merge pull request godotengine#87670 from RandomShaper/d3d12_16bit
Direct3D 12: Query support for 16-bit operations
2 parents c5d62d3 + d0aae82 commit 131fefd

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

drivers/d3d12/d3d12_context.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,13 @@ Error D3D12Context::_check_capabilities() {
227227
}
228228
}
229229

230+
D3D12_FEATURE_DATA_D3D12_OPTIONS4 options4 = {};
231+
res = md.device->CheckFeatureSupport(D3D12_FEATURE_D3D12_OPTIONS4, &options4, sizeof(options4));
232+
if (SUCCEEDED(res)) {
233+
shader_capabilities.native_16bit_ops = options4.Native16BitShaderOpsSupported;
234+
}
235+
print_verbose(String(" 16-bit ops supported: ") + (shader_capabilities.native_16bit_ops ? "yes" : "no"));
236+
230237
D3D12_FEATURE_DATA_D3D12_OPTIONS6 options6 = {};
231238
res = md.device->CheckFeatureSupport(D3D12_FEATURE_D3D12_OPTIONS6, &options6, sizeof(options6));
232239
if (SUCCEEDED(res)) {

0 commit comments

Comments
 (0)