Cogs.Core
Base.h
1#pragma once
2
3#ifdef _WIN32
4 // When building the library:
5 #ifdef COGSRENDERING_BUILD
6 #ifdef COGSRENDERING_DLL
7 #define COGSRENDERING_DLL_API __declspec(dllexport)
8 #else
9 #define COGSRENDERING_DLL_API
10 #endif
11 // When using the library:
12 #else
13 #ifdef COGSRENDERING_DLL
14 #define COGSRENDERING_DLL_API __declspec(dllimport)
15 #else
16 #define COGSRENDERING_DLL_API
17 #endif
18 #endif
19#else
20 #define COGSRENDERING_DLL_API
21#endif
22
23namespace Cogs
24{
25 namespace Memory
26 {
28 class Allocator;
29 }
30
35 {
38
42 };
43
48 {
50 Unknown = 0,
52 Default = 0,
62 Vulkan,
64 WebGPU,
66 Null,
67 };
68}
Base allocator implementation.
Definition: Allocator.h:30
Contains all Cogs related functionality.
Definition: FieldSetter.h:23
GraphicsDeviceType
Contains types of graphics devices that may be supported.
Definition: Base.h:48
@ Direct3D12
Graphics device using the Direct3D 12 API.
@ OpenGLES30
Graphics device using the OpenGLES 3.0 API.
@ Vulkan
Graphics device using the Vulkan API.
@ Direct3D11
Graphics device using the Direct3D 11 API.
@ Default
Default type of graphics device, same as unknown.
@ OpenGL20
Graphics device using OpenGL, supporting at least OpenGL 2.0.
@ Null
Null device that implements no rendering functionality.
@ WebGPU
Graphics device using the WebGPU API Backend.
Allocation information.
Definition: Base.h:35
Memory::Allocator * resourceAllocator
Definition: Base.h:41
Memory::Allocator * baseAllocator
Base allocator. Used for misc. internal memory allocations.
Definition: Base.h:37