Skip to content

Commit

Permalink
Direct3D 12: Query support for 16-bit operations
Browse files Browse the repository at this point in the history
  • Loading branch information
RandomShaper committed Jan 28, 2024
1 parent 107f296 commit f77f46e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions drivers/d3d12/d3d12_context.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,13 @@ Error D3D12Context::_check_capabilities() {
}
}

D3D12_FEATURE_DATA_D3D12_OPTIONS4 options4 = {};
res = md.device->CheckFeatureSupport(D3D12_FEATURE_D3D12_OPTIONS4, &options4, sizeof(options4));
if (SUCCEEDED(res)) {
shader_capabilities.native_16bit_ops = options4.Native16BitShaderOpsSupported;
}
print_verbose(String(" 16-bit ops supported: ") + (shader_capabilities.native_16bit_ops ? "yes" : "no"));

D3D12_FEATURE_DATA_D3D12_OPTIONS6 options6 = {};
res = md.device->CheckFeatureSupport(D3D12_FEATURE_D3D12_OPTIONS6, &options6, sizeof(options6));
if (SUCCEEDED(res)) {
Expand Down

0 comments on commit f77f46e

Please sign in to comment.