Engine²
Open-source game engine written in C++.
Loading...
Searching...
No Matches
CreateAdapter.cpp File Reference
#include "CreateAdapter.hpp"
#include "exception/AdapterCreationError.hpp"
#include "resource/Context.hpp"
#include "resource/GraphicSettings.hpp"
#include <optional>
#include <vector>

Functions

static std::optional< wgpu::BackendType > getBackendType (const wgpu::Adapter &adapter)
static std::optional< wgpu::Adapter > findVulkanAdapter (const Graphic::Resource::Context &context)
static void selectVulkanAdapter (const Graphic::Resource::Context &context, wgpu::Adapter &adapter)

Function Documentation

◆ findVulkanAdapter()

std::optional< wgpu::Adapter > findVulkanAdapter ( const Graphic::Resource::Context & context)
static

◆ getBackendType()

std::optional< wgpu::BackendType > getBackendType ( const wgpu::Adapter & adapter)
static

◆ selectVulkanAdapter()

void selectVulkanAdapter ( const Graphic::Resource::Context & context,
wgpu::Adapter & adapter )
static