Skip to content

Commit d0aae82

Browse files
committed
Direct3D 12: Query support for 16-bit operations
1 parent 71e0b54 commit d0aae82

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
@@ -225,6 +225,13 @@ Error D3D12Context::_check_capabilities() {
225225
}
226226
}
227227

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+
228235
D3D12_FEATURE_DATA_D3D12_OPTIONS6 options6 = {};
229236
res = md.device->CheckFeatureSupport(D3D12_FEATURE_D3D12_OPTIONS6, &options6, sizeof(options6));
230237
if (SUCCEEDED(res)) {

0 commit comments

Comments
 (0)