diff options
Diffstat (limited to 'src/libs/dxvk-native-1.9.2a/src/d3d9/d3d9_monitor.h')
-rw-r--r-- | src/libs/dxvk-native-1.9.2a/src/d3d9/d3d9_monitor.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/src/libs/dxvk-native-1.9.2a/src/d3d9/d3d9_monitor.h b/src/libs/dxvk-native-1.9.2a/src/d3d9/d3d9_monitor.h new file mode 100644 index 00000000..0a9d1a89 --- /dev/null +++ b/src/libs/dxvk-native-1.9.2a/src/d3d9/d3d9_monitor.h @@ -0,0 +1,35 @@ +#pragma once + +#include "d3d9_include.h" + +#include "d3d9_format.h" + +namespace dxvk { + + /** + * \brief Queries bits per pixel for a format + * + * The format must be a valid swap chain format. + * \param [in] Format The D3D9 format to query + * \returns Bits per pixel for this format + */ + uint32_t GetMonitorFormatBpp( + D3D9Format Format); + + /** + * \brief Returns if a format is supported for a backbuffer/swapchain. + * + * \param [in] Format The D3D9 format to query + * \returns If it is supported as a swapchain/backbuffer format. + */ + bool IsSupportedAdapterFormat( + D3D9Format Format); + + bool IsSupportedBackBufferFormat( + D3D9Format AdapterFormat, + D3D9Format BackBufferFormat, + BOOL Windowed); + + bool IsSupportedBackBufferFormat( + D3D9Format BackBufferFormat); +} |