Skip to content

KDGpu::GraphicsApi

Module: Public API

GraphicsApi is the link between our Application and the Rendering API. More...

#include <KDGpu/graphics_api.h>

Inherited by KDGpu::VulkanGraphicsApi

Public Types

Name
enum class uint8_t Api { Vulkan = 0, UserDefined = 255}

Public Functions

Name
virtual ~GraphicsApi()
Api api() const
virtual const char * apiName() const =0
Instance createInstance(const InstanceOptions & options =InstanceOptions())
Create an Instance object given the InstanceOptionsoptions.
ResourceManager * resourceManager()
Returns the ResourceManager instance for the GraphicsApi.
const ResourceManager * resourceManager() const

Protected Functions

Name
GraphicsApi(Api api)

Protected Attributes

Name
ResourceManager * m_resourceManager
Api m_api

Detailed Description

1
class KDGpu::GraphicsApi;

GraphicsApi is the link between our Application and the Rendering API.

See: KDGpu::VulkanGraphicsAPI

Public Types Documentation

enum Api

Enumerator Value Description
Vulkan 0
UserDefined 255

Public Functions Documentation

function ~GraphicsApi

1
virtual ~GraphicsApi()

function api

1
inline Api api() const

function apiName

1
virtual const char * apiName() const =0

Reimplemented by: KDGpu::VulkanGraphicsApi::apiName

function createInstance

1
2
3
Instance createInstance(
    const InstanceOptions & options =InstanceOptions()
)

Create an Instance object given the InstanceOptionsoptions.

function resourceManager

1
inline ResourceManager * resourceManager()

Returns the ResourceManager instance for the GraphicsApi.

function resourceManager

1
inline const ResourceManager * resourceManager() const

Protected Functions Documentation

function GraphicsApi

1
2
3
explicit GraphicsApi(
    Api api
)

Protected Attributes Documentation

variable m_resourceManager

1
ResourceManager * m_resourceManager { nullptr };

variable m_api

1
Api m_api { Api::UserDefined };

Updated on 2024-11-21 at 00:08:26 +0000