Blender V5.3
GHOST_XrGraphicsBindingD3D.cc File Reference
#include <algorithm>
#include <sstream>
#include "GHOST_SystemWin32.hh"
#include "GHOST_XrException.hh"
#include "GHOST_XrGraphicsBindingD3D.hh"

Go to the source code of this file.

Macros

#define LOAD_FUNCTION(fn_ptr, name)

Functions

static void ghost_format_to_dx_format (GHOST_TXrSwapchainFormat ghost_format, bool expects_srgb_buffer, DXGI_FORMAT &r_dx_format)
static std::optional< int64_t > choose_swapchain_format_from_candidates (const std::vector< int64_t > &gpu_binding_formats, const std::vector< int64_t > &runtime_formats)

Macro Definition Documentation

◆ LOAD_FUNCTION

#define LOAD_FUNCTION ( fn_ptr,
name )
Value:
if (XR_FAILED(xrGetInstanceProcAddr(instance, #name, (PFN_xrVoidFunction *)&fn_ptr))) { \
return false; \
}

Referenced by GHOST_XrGraphicsBindingD3D::loadExtensionFunctions(), GHOST_XrGraphicsBindingMetal::loadExtensionFunctions(), and GHOST_XrGraphicsBindingVulkan::loadExtensionFunctions().

Function Documentation

◆ choose_swapchain_format_from_candidates()

std::optional< int64_t > choose_swapchain_format_from_candidates ( const std::vector< int64_t > & gpu_binding_formats,
const std::vector< int64_t > & runtime_formats )
static

◆ ghost_format_to_dx_format()

void ghost_format_to_dx_format ( GHOST_TXrSwapchainFormat ghost_format,
bool expects_srgb_buffer,
DXGI_FORMAT & r_dx_format )
static