Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
DirectXHelper.h File Reference
#include "commons/Exception.h"
#include "dxerr.h"
#include "platform/win32/CharsetConverter.h"
#include <d3d11_4.h>
#include <ppltasks.h>

Classes

struct  DX::SizeGen< T >
 

Namespaces

namespace  DX
 
namespace  DX::DisplayMetrics
 

Macros

#define RATIONAL_TO_FLOAT(rational)
 

Enumerations

enum  PCI_Vendors { PCIV_AMD = 0x1002 , PCIV_NVIDIA = 0x10DE , PCIV_Intel = 0x8086 , PCIV_MICROSOFT = 0x1414 }
 

Functions

void DX::BreakIfFailed (HRESULT hr)
 
float DX::ConvertDipsToPixels (float dips, float dpi)
 
float DX::ConvertPixelsToDips (float pixels, float dpi)
 
float DX::RationalToFloat (DXGI_RATIONAL rational)
 
void DX::GetRefreshRatio (uint32_t refresh, uint32_t *num, uint32_t *den)
 
std::string DX::GetFeatureLevelDescription (D3D_FEATURE_LEVEL featureLevel)
 
constexpr std::string_view DX::GetGFXProviderName (UINT vendorId)
 
constexpr std::string_view DX::DXGIFormatToShortString (const DXGI_FORMAT format)
 
const std::string DX::DXGIFormatToString (const DXGI_FORMAT format)
 
const std::string DX::DXGIColorSpaceTypeToString (DXGI_COLOR_SPACE_TYPE type)
 
const std::string DX::D3D11VideoProcessorFormatSupportToString (D3D11_VIDEO_PROCESSOR_FORMAT_SUPPORT value)
 

Macro Definition Documentation

◆ RATIONAL_TO_FLOAT

#define RATIONAL_TO_FLOAT ( rational)
Value:
((rational.Denominator != 0) ? \
static_cast<float>(rational.Numerator) / static_cast<float>(rational.Denominator) : 0.0f)

Enumeration Type Documentation

◆ PCI_Vendors

Enumerator
PCIV_AMD 
PCIV_NVIDIA 
PCIV_Intel 
PCIV_MICROSOFT