Blender V5.0
GHOST_XrGraphicsBindingVulkan.cc File Reference
#include <algorithm>
#include <cstring>
#include <sstream>
#include "GHOST_ContextVK.hh"
#include "GHOST_XrException.hh"
#include "GHOST_XrGraphicsBindingVulkan.hh"
#include "GHOST_Xr_intern.hh"

Go to the source code of this file.

Macros

#define LOAD_PFN(var, name)

Functions

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

Macro Definition Documentation

◆ LOAD_PFN

#define LOAD_PFN ( var,
name )
Value:
if (var == nullptr && \
XR_FAILED(xrGetInstanceProcAddr(instance, #name, (PFN_xrVoidFunction *)&var))) \
{ \
var = nullptr; \
*r_requirement_info = std::string("Unable to retrieve " #name " instance function"); \
return false; \
}
const char * name

Referenced by GHOST_XrGraphicsBindingVulkan::checkVersionRequirements().

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

Definition at line 347 of file GHOST_XrGraphicsBindingVulkan.cc.