Merge pull request #87670 from RandomShaper/d3d12_16bit
Direct3D 12: Query support for 16-bit operations
This commit is contained in:
commit
6305277312
|
@ -227,6 +227,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)) {
|
||||
|
|
Loading…
Reference in New Issue