Skip to content

KDGpu::AdapterAndDevice

Module: Public API

Convenience struct holding an adapter pointer and its created device. More...

#include <KDGpu/instance.h>

Public Attributes

Name
Adapter * adapter
Pointer to the selected adapter (owned by Instance)
Device device
Created device (move this into your application state)

Detailed Description

1
struct KDGpu::AdapterAndDevice;

Convenience struct holding an adapter pointer and its created device.

See: Instance::createDefaultDevice()

Returned by Instance::createDefaultDevice() to provide both the chosen adapter and the created device in one operation.

Public Attributes Documentation

variable adapter

1
Adapter * adapter;

Pointer to the selected adapter (owned by Instance)

variable device

1
Device device;

Created device (move this into your application state)


Updated on 2026-03-31 at 00:02:07 +0000