1 parent 71e0b54 commit d0aae82Copy full SHA for d0aae82
1 file changed
drivers/d3d12/d3d12_context.cpp
@@ -225,6 +225,13 @@ Error D3D12Context::_check_capabilities() {
225
}
226
227
228
+ D3D12_FEATURE_DATA_D3D12_OPTIONS4 options4 = {};
229
+ res = md.device->CheckFeatureSupport(D3D12_FEATURE_D3D12_OPTIONS4, &options4, sizeof(options4));
230
+ if (SUCCEEDED(res)) {
231
+ shader_capabilities.native_16bit_ops = options4.Native16BitShaderOpsSupported;
232
+ }
233
+ print_verbose(String(" 16-bit ops supported: ") + (shader_capabilities.native_16bit_ops ? "yes" : "no"));
234
+
235
D3D12_FEATURE_DATA_D3D12_OPTIONS6 options6 = {};
236
res = md.device->CheckFeatureSupport(D3D12_FEATURE_D3D12_OPTIONS6, &options6, sizeof(options6));
237
if (SUCCEEDED(res)) {
0 commit comments