2019-12-16 04:28:01 +01:00
|
|
|
#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(
|
2021-02-06 09:57:32 +01:00
|
|
|
D3D9Format Format);
|
2019-12-16 04:28:01 +01:00
|
|
|
|
|
|
|
bool IsSupportedBackBufferFormat(
|
2021-02-06 09:57:32 +01:00
|
|
|
D3D9Format AdapterFormat,
|
2019-12-16 04:28:01 +01:00
|
|
|
D3D9Format BackBufferFormat,
|
|
|
|
BOOL Windowed);
|
|
|
|
|
2021-02-06 09:57:32 +01:00
|
|
|
bool IsSupportedBackBufferFormat(
|
|
|
|
D3D9Format BackBufferFormat);
|
|
|
|
}
|