Add RenderDevice struct and driver accessor functions

This commit is contained in:
2025-03-15 18:01:57 +10:00
parent d91275c393
commit f979b782cc
4 changed files with 66 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
/**
* Copyright (c) 2025, Jayden Grubb <contact@jaydengrubb.com>
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#pragma once
#include <nova/api.h>
#include <nova/types.h>
#include <string>
namespace Nova {
struct NOVA_API RenderDevice {
enum class Vendor { UNKNOWN = 0, INTEL = 0x8086, AMD = 0x1002, NVIDIA = 0x10de };
enum class Type { OTHER = 0, INTEGRATED = 1, DISCRETE = 2, VIRTUAL = 3, CPU = 4 };
std::string name;
Vendor vendor;
Type type;
u32 deviceID;
void* handle;
};
} // namespace Nova