Rihen Rihen NkentseuDocumentation
Development version, not published. Built from main: it shows what is coming (fixes, descriptions written since the last tag) and can change with every commit. Go to the stable version 0.1.0-beta.11

NkGraphicsApi

enumeration

Supported graphics API types

Include
#include "NKPlatform/NkCGXDetect.h"
Namespace
nkentseu::graphics
Link (Jenga)
nkentseudependson(["NKPlatform"])
C++
enum class NkGraphicsApi : unsigned int

Hierarchy

Base classes : none. Derived classes : none.

Hierarchy : NkGraphicsApiNkGraphicsApi

NkGraphicsApi

#
enumeration
enum class NkGraphicsApi : unsigned int

Supported graphics API types

Values

NK_GFX_API_NONE
NK_GFX_API_OPENGL
NK_GFX_API_OPENGLES
NK_GFX_API_VULKAN
NK_GFX_API_DX11
NK_GFX_API_DX12
NK_GFX_API_METAL
NK_GFX_API_WEBGL
NK_GFX_API_WEBGL2
NK_GFX_API_WEBGPU
NK_GFX_API_SOFTWARE
NK_GFX_API_GNM
NK_GFX_API_NVN
NK_GFX_API_MAX
NK_GFX_API_AUTO
@codefragment, not compiled
// Vérification de disponibilité à l'exécution
bool IsApiSupported(nkentseu::platform::graphics::NkGraphicsApi api) {
    switch (api) {
        #if defined(NKENTSEU_GRAPHICS_VULKAN_AVAILABLE)
        case nkentseu::platform::graphics::NkGraphicsApi::NK_GFX_API_VULKAN:
            return CheckVulkanDrivers();
        #endif
        // ... autres cas
        default: return false;
    }
}