TachyonUI 1.1.0
High-performance UI for building tools.
Loading...
Searching...
No Matches
d3d12_common.h File Reference
#include <windows.h>
#include <d3d12.h>
#include <dxgi1_6.h>
#include <wrl/client.h>
#include <string>

Go to the source code of this file.

Namespaces

namespace  tachyon
namespace  tachyon::d3d12

Macros

#define WIN32_LEAN_AND_MEAN
#define NOMINMAX

Functions

std::string tachyon::d3d12::HResultText (HRESULT hr)
 A failed call's HRESULT as text, for errors and logs ("0x887A0005").
std::string tachyon::d3d12::FromWide (const wchar_t *text)
 UTF-16 from Windows (an adapter's name) as UTF-8.

Variables

constexpr DXGI_FORMAT tachyon::d3d12::kDrawFormat = DXGI_FORMAT_B8G8R8A8_UNORM
 What a window frame draws into, as on Vulkan: 8-bit BGRA, and 32-bit float depth.
constexpr DXGI_FORMAT tachyon::d3d12::kDepthFormat = DXGI_FORMAT_D32_FLOAT

Macro Definition Documentation

◆ WIN32_LEAN_AND_MEAN

#define WIN32_LEAN_AND_MEAN

◆ NOMINMAX

#define NOMINMAX