2 parents c5d62d3 + d0aae82 commit 131fefdCopy full SHA for 131fefd
1 file changed
drivers/d3d12/d3d12_context.cpp
@@ -227,6 +227,13 @@ Error D3D12Context::_check_capabilities() {
227
}
228
229
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
+
237
D3D12_FEATURE_DATA_D3D12_OPTIONS6 options6 = {};
238
res = md.device->CheckFeatureSupport(D3D12_FEATURE_D3D12_OPTIONS6, &options6, sizeof(options6));
239
if (SUCCEEDED(res)) {
0 commit comments