KiCad PCB EDA Suite
Loading...
Searching...
No Matches
rhi_platform_device.h File Reference
#include <memory>

Go to the source code of this file.

Functions

std::unique_ptr< RHI_DEVICE > RhiCreatePlatformDevice (bool aEnableVulkanValidation)
 Create the device of the one RHI backend this platform is built with, Metal on macOS and Vulkan elsewhere.
 

Function Documentation

◆ RhiCreatePlatformDevice()

std::unique_ptr< RHI_DEVICE > RhiCreatePlatformDevice ( bool aEnableVulkanValidation)

Create the device of the one RHI backend this platform is built with, Metal on macOS and Vulkan elsewhere.

Parameters
aEnableVulkanValidationturns on the Vulkan validation layers.
Returns
an initialized device, or nullptr when the backend is not built or cannot start.

Definition at line 32 of file rhi_platform_device.cpp.

References RhiCreateMetalDevice(), and RhiCreateVulkanDevice().

Referenced by KIGFX::GAL_MODERN::AcquireRenderThread(), and GPU_COMPUTE::Get().