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/Adapter.hpp"
#include "resource/DeviceContext.hpp"
#include "resource/GraphicSettings.hpp"
#include "resource/Instance.hpp"
#include "resource/Surface.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::Instance &instance)
static void selectVulkanAdapter (const Graphic::Resource::Instance &instance, wgpu::Adapter &adapter)

Function Documentation

◆ findVulkanAdapter()

std::optional< wgpu::Adapter > findVulkanAdapter ( const Graphic::Resource::Instance & instance)
static

◆ getBackendType()

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

◆ selectVulkanAdapter()

void selectVulkanAdapter ( const Graphic::Resource::Instance & instance,
wgpu::Adapter & adapter )
static