2017-02-03 23:16:30 +00:00
|
|
|
#include "graphics/font.h"
|
2016-11-19 09:28:01 +00:00
|
|
|
#include "graphics/shader.h"
|
2018-12-25 05:08:06 +00:00
|
|
|
#include "lib/math.h"
|
2018-07-04 20:51:35 +00:00
|
|
|
#include "util.h"
|
2018-11-16 10:26:56 +00:00
|
|
|
#include "platform.h"
|
2017-10-31 08:14:09 +00:00
|
|
|
#include <stdbool.h>
|
2018-07-17 06:51:11 +00:00
|
|
|
#include <stdint.h>
|
2016-09-21 07:55:53 +00:00
|
|
|
|
2017-01-26 10:20:30 +00:00
|
|
|
#pragma once
|
2016-09-27 06:48:09 +00:00
|
|
|
|
2018-07-17 06:51:11 +00:00
|
|
|
#define MAX_TRANSFORMS 64
|
2018-12-27 21:50:42 +00:00
|
|
|
#define MAX_BATCHES 16
|
2019-03-29 07:49:41 +00:00
|
|
|
#define MAX_DRAWS 256
|
2018-12-27 21:50:42 +00:00
|
|
|
#define MAX_LOCKS 4
|
2016-09-29 04:47:36 +00:00
|
|
|
|
2019-04-05 11:58:29 +00:00
|
|
|
struct Buffer;
|
|
|
|
struct Canvas;
|
|
|
|
struct Font;
|
|
|
|
struct Material;
|
|
|
|
struct Mesh;
|
|
|
|
struct Shader;
|
|
|
|
struct Texture;
|
|
|
|
|
2018-07-16 00:05:06 +00:00
|
|
|
typedef void (*StencilCallback)(void* userdata);
|
|
|
|
|
2018-07-17 06:51:11 +00:00
|
|
|
typedef enum {
|
|
|
|
ARC_MODE_PIE,
|
|
|
|
ARC_MODE_OPEN,
|
|
|
|
ARC_MODE_CLOSED
|
|
|
|
} ArcMode;
|
2018-07-16 00:05:06 +00:00
|
|
|
|
|
|
|
typedef enum {
|
|
|
|
BLEND_ALPHA,
|
|
|
|
BLEND_ADD,
|
|
|
|
BLEND_SUBTRACT,
|
|
|
|
BLEND_MULTIPLY,
|
|
|
|
BLEND_LIGHTEN,
|
|
|
|
BLEND_DARKEN,
|
|
|
|
BLEND_SCREEN,
|
2018-12-27 21:50:42 +00:00
|
|
|
BLEND_NONE
|
2018-07-16 00:05:06 +00:00
|
|
|
} BlendMode;
|
|
|
|
|
|
|
|
typedef enum {
|
|
|
|
BLEND_ALPHA_MULTIPLY,
|
|
|
|
BLEND_PREMULTIPLIED
|
|
|
|
} BlendAlphaMode;
|
|
|
|
|
|
|
|
typedef enum {
|
|
|
|
COMPARE_EQUAL,
|
|
|
|
COMPARE_NEQUAL,
|
|
|
|
COMPARE_LESS,
|
|
|
|
COMPARE_LEQUAL,
|
|
|
|
COMPARE_GREATER,
|
2019-02-01 23:10:12 +00:00
|
|
|
COMPARE_GEQUAL,
|
|
|
|
COMPARE_NONE
|
2018-07-16 00:05:06 +00:00
|
|
|
} CompareMode;
|
|
|
|
|
2018-07-17 06:51:11 +00:00
|
|
|
typedef enum {
|
2018-12-13 02:43:04 +00:00
|
|
|
STYLE_FILL,
|
|
|
|
STYLE_LINE
|
|
|
|
} DrawStyle;
|
2018-07-17 06:51:11 +00:00
|
|
|
|
2018-07-16 00:05:06 +00:00
|
|
|
typedef enum {
|
|
|
|
STENCIL_REPLACE,
|
|
|
|
STENCIL_INCREMENT,
|
|
|
|
STENCIL_DECREMENT,
|
|
|
|
STENCIL_INCREMENT_WRAP,
|
|
|
|
STENCIL_DECREMENT_WRAP,
|
|
|
|
STENCIL_INVERT
|
|
|
|
} StencilAction;
|
|
|
|
|
2018-07-17 06:51:11 +00:00
|
|
|
typedef enum {
|
|
|
|
WINDING_CLOCKWISE,
|
|
|
|
WINDING_COUNTERCLOCKWISE
|
|
|
|
} Winding;
|
|
|
|
|
|
|
|
typedef struct {
|
2018-08-30 03:57:30 +00:00
|
|
|
bool stereo;
|
2019-04-05 11:58:29 +00:00
|
|
|
struct Canvas* canvas;
|
2018-07-21 12:30:13 +00:00
|
|
|
float viewMatrix[2][16];
|
|
|
|
float projection[2][16];
|
2018-07-17 06:51:11 +00:00
|
|
|
} Camera;
|
|
|
|
|
2018-07-16 00:05:06 +00:00
|
|
|
typedef struct {
|
2018-12-27 21:50:42 +00:00
|
|
|
float transform[16];
|
|
|
|
Color color;
|
|
|
|
} DrawData;
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
bool alphaSampling : 1;
|
|
|
|
uint8_t blendMode : 3; // BlendMode
|
|
|
|
uint8_t blendAlphaMode : 1; // BlendAlphaMode
|
|
|
|
bool culling : 1;
|
|
|
|
uint8_t depthTest : 3; // CompareMode
|
2018-12-25 03:19:08 +00:00
|
|
|
bool depthWrite : 1;
|
|
|
|
uint8_t lineWidth : 8;
|
|
|
|
uint8_t stencilValue: 8;
|
2018-12-27 21:50:42 +00:00
|
|
|
uint8_t stencilMode : 3; // CompareMode
|
|
|
|
uint8_t winding : 1; // Winding
|
2018-12-25 03:19:08 +00:00
|
|
|
bool wireframe : 1;
|
2018-07-16 00:05:06 +00:00
|
|
|
} Pipeline;
|
|
|
|
|
2018-12-27 21:50:42 +00:00
|
|
|
typedef enum {
|
|
|
|
STREAM_VERTEX,
|
|
|
|
STREAM_INDEX,
|
|
|
|
STREAM_DRAW_ID,
|
2019-03-29 07:49:41 +00:00
|
|
|
STREAM_TRANSFORM,
|
|
|
|
STREAM_COLOR,
|
2018-12-27 21:50:42 +00:00
|
|
|
MAX_BUFFER_ROLES
|
|
|
|
} BufferRole;
|
|
|
|
|
|
|
|
typedef enum {
|
|
|
|
BATCH_POINTS,
|
|
|
|
BATCH_LINES,
|
|
|
|
BATCH_TRIANGLES,
|
|
|
|
BATCH_PLANE,
|
|
|
|
BATCH_BOX,
|
|
|
|
BATCH_ARC,
|
|
|
|
BATCH_SPHERE,
|
2019-01-02 23:18:09 +00:00
|
|
|
BATCH_CYLINDER,
|
2018-12-27 21:50:42 +00:00
|
|
|
BATCH_SKYBOX,
|
|
|
|
BATCH_TEXT,
|
|
|
|
BATCH_FILL,
|
|
|
|
BATCH_MESH
|
|
|
|
} BatchType;
|
|
|
|
|
|
|
|
typedef union {
|
|
|
|
struct { DrawStyle style; } triangles;
|
|
|
|
struct { DrawStyle style; } plane;
|
|
|
|
struct { DrawStyle style; } box;
|
|
|
|
struct { DrawStyle style; ArcMode mode; float r1; float r2; int segments; } arc;
|
2019-01-02 23:18:09 +00:00
|
|
|
struct { float r1; float r2; bool capped; int segments; } cylinder;
|
2018-12-27 21:50:42 +00:00
|
|
|
struct { int segments; } sphere;
|
|
|
|
struct { float u; float v; float w; float h; } fill;
|
2019-04-05 11:58:29 +00:00
|
|
|
struct { struct Mesh* object; DrawMode mode; uint32_t rangeStart; uint32_t rangeCount; uint32_t instances; float* pose; } mesh;
|
2018-12-27 21:50:42 +00:00
|
|
|
} BatchParams;
|
|
|
|
|
2018-07-16 00:05:06 +00:00
|
|
|
typedef struct {
|
2018-12-27 21:50:42 +00:00
|
|
|
BatchType type;
|
|
|
|
BatchParams params;
|
2019-03-28 05:57:32 +00:00
|
|
|
DrawMode drawMode;
|
2018-07-17 06:51:11 +00:00
|
|
|
DefaultShader shader;
|
2018-12-27 21:50:42 +00:00
|
|
|
Pipeline* pipeline;
|
2019-04-05 11:58:29 +00:00
|
|
|
struct Material* material;
|
|
|
|
struct Texture* diffuseTexture;
|
|
|
|
struct Texture* environmentMap;
|
2018-07-17 06:51:11 +00:00
|
|
|
mat4 transform;
|
2018-12-27 21:50:42 +00:00
|
|
|
uint32_t vertexCount;
|
|
|
|
uint32_t indexCount;
|
|
|
|
float** vertices;
|
|
|
|
uint16_t** indices;
|
|
|
|
uint16_t* baseVertex;
|
2019-03-28 05:57:32 +00:00
|
|
|
bool instanced;
|
2018-12-27 21:50:42 +00:00
|
|
|
} BatchRequest;
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
BatchType type;
|
|
|
|
BatchParams params;
|
2019-03-28 05:57:32 +00:00
|
|
|
DrawMode drawMode;
|
2019-04-05 11:58:29 +00:00
|
|
|
struct Canvas* canvas;
|
|
|
|
struct Shader* shader;
|
2018-12-27 21:50:42 +00:00
|
|
|
Pipeline pipeline;
|
2019-04-05 11:58:29 +00:00
|
|
|
struct Material* material;
|
2019-03-29 07:49:41 +00:00
|
|
|
mat4 transforms;
|
|
|
|
Color* colors;
|
|
|
|
struct { uint32_t start; uint32_t count; } cursors[MAX_BUFFER_ROLES];
|
|
|
|
uint32_t count;
|
2019-03-28 05:57:32 +00:00
|
|
|
bool instanced;
|
2018-12-27 21:50:42 +00:00
|
|
|
} Batch;
|
2018-07-14 00:12:30 +00:00
|
|
|
|
2016-09-27 06:48:09 +00:00
|
|
|
typedef struct {
|
2018-02-23 03:18:36 +00:00
|
|
|
bool initialized;
|
2018-07-17 06:51:11 +00:00
|
|
|
bool gammaCorrect;
|
2018-08-29 06:05:09 +00:00
|
|
|
int width;
|
|
|
|
int height;
|
2018-07-17 06:51:11 +00:00
|
|
|
Camera camera;
|
2019-04-05 11:58:29 +00:00
|
|
|
struct Shader* defaultShaders[MAX_DEFAULT_SHADERS];
|
|
|
|
struct Material* defaultMaterial;
|
|
|
|
struct Font* defaultFont;
|
2017-08-02 07:29:47 +00:00
|
|
|
TextureFilter defaultFilter;
|
2018-07-17 06:51:11 +00:00
|
|
|
float transforms[MAX_TRANSFORMS][16];
|
2018-07-15 01:26:02 +00:00
|
|
|
int transform;
|
2018-12-25 02:53:23 +00:00
|
|
|
Color backgroundColor;
|
2019-04-05 11:58:29 +00:00
|
|
|
struct Canvas* canvas;
|
2018-12-25 02:57:27 +00:00
|
|
|
Color color;
|
2019-04-05 11:58:29 +00:00
|
|
|
struct Font* font;
|
2018-12-25 08:20:59 +00:00
|
|
|
Pipeline pipeline;
|
2018-12-25 02:59:00 +00:00
|
|
|
float pointSize;
|
2019-04-05 11:58:29 +00:00
|
|
|
struct Shader* shader;
|
|
|
|
struct Mesh* mesh;
|
|
|
|
struct Mesh* instancedMesh;
|
|
|
|
struct Buffer* identityBuffer;
|
|
|
|
struct Buffer* buffers[MAX_BUFFER_ROLES];
|
2019-03-17 07:58:01 +00:00
|
|
|
uint32_t cursors[MAX_BUFFER_ROLES];
|
2018-12-27 21:50:42 +00:00
|
|
|
void* locks[MAX_BUFFER_ROLES][MAX_LOCKS];
|
|
|
|
Batch batches[MAX_BATCHES];
|
|
|
|
uint8_t batchCount;
|
2016-09-27 06:48:09 +00:00
|
|
|
} GraphicsState;
|
2016-11-23 05:07:33 +00:00
|
|
|
|
2016-11-23 05:16:13 +00:00
|
|
|
// Base
|
2018-11-19 16:08:56 +00:00
|
|
|
bool lovrGraphicsInit(bool gammaCorrect);
|
2019-02-17 22:39:51 +00:00
|
|
|
void lovrGraphicsDestroy(void);
|
|
|
|
void lovrGraphicsPresent(void);
|
2019-01-21 04:06:40 +00:00
|
|
|
void lovrGraphicsCreateWindow(WindowFlags* flags);
|
2019-02-17 22:39:51 +00:00
|
|
|
int lovrGraphicsGetWidth(void);
|
|
|
|
int lovrGraphicsGetHeight(void);
|
|
|
|
float lovrGraphicsGetPixelDensity(void);
|
2018-07-17 06:51:11 +00:00
|
|
|
void lovrGraphicsSetCamera(Camera* camera, bool clear);
|
2019-04-05 11:58:29 +00:00
|
|
|
struct Buffer* lovrGraphicsGetIdentityBuffer(void);
|
2019-03-15 04:24:25 +00:00
|
|
|
#define lovrGraphicsGetFeatures lovrGpuGetFeatures
|
2018-08-31 13:03:35 +00:00
|
|
|
#define lovrGraphicsGetLimits lovrGpuGetLimits
|
|
|
|
#define lovrGraphicsGetStats lovrGpuGetStats
|
2016-11-23 05:16:13 +00:00
|
|
|
|
|
|
|
// State
|
2019-02-17 22:39:51 +00:00
|
|
|
void lovrGraphicsReset(void);
|
|
|
|
bool lovrGraphicsGetAlphaSampling(void);
|
2018-12-12 06:54:13 +00:00
|
|
|
void lovrGraphicsSetAlphaSampling(bool sample);
|
2019-02-17 22:39:51 +00:00
|
|
|
Color lovrGraphicsGetBackgroundColor(void);
|
2017-08-02 08:25:56 +00:00
|
|
|
void lovrGraphicsSetBackgroundColor(Color color);
|
2017-03-12 11:03:36 +00:00
|
|
|
void lovrGraphicsGetBlendMode(BlendMode* mode, BlendAlphaMode* alphaMode);
|
|
|
|
void lovrGraphicsSetBlendMode(BlendMode mode, BlendAlphaMode alphaMode);
|
2019-04-05 11:58:29 +00:00
|
|
|
struct Canvas* lovrGraphicsGetCanvas(void);
|
|
|
|
void lovrGraphicsSetCanvas(struct Canvas* canvas);
|
2019-02-17 22:39:51 +00:00
|
|
|
Color lovrGraphicsGetColor(void);
|
2017-08-02 08:25:56 +00:00
|
|
|
void lovrGraphicsSetColor(Color color);
|
2019-02-17 22:39:51 +00:00
|
|
|
bool lovrGraphicsIsCullingEnabled(void);
|
2017-10-31 08:14:09 +00:00
|
|
|
void lovrGraphicsSetCullingEnabled(bool culling);
|
2019-02-17 22:39:51 +00:00
|
|
|
TextureFilter lovrGraphicsGetDefaultFilter(void);
|
2017-08-02 07:54:33 +00:00
|
|
|
void lovrGraphicsSetDefaultFilter(TextureFilter filter);
|
2018-02-09 05:50:47 +00:00
|
|
|
void lovrGraphicsGetDepthTest(CompareMode* mode, bool* write);
|
|
|
|
void lovrGraphicsSetDepthTest(CompareMode depthTest, bool write);
|
2019-04-05 11:58:29 +00:00
|
|
|
struct Font* lovrGraphicsGetFont(void);
|
|
|
|
void lovrGraphicsSetFont(struct Font* font);
|
2019-02-17 22:39:51 +00:00
|
|
|
bool lovrGraphicsIsGammaCorrect(void);
|
|
|
|
float lovrGraphicsGetLineWidth(void);
|
2018-12-25 03:19:08 +00:00
|
|
|
void lovrGraphicsSetLineWidth(uint8_t width);
|
2019-02-17 22:39:51 +00:00
|
|
|
float lovrGraphicsGetPointSize(void);
|
2017-08-02 07:54:33 +00:00
|
|
|
void lovrGraphicsSetPointSize(float size);
|
2019-04-05 11:58:29 +00:00
|
|
|
struct Shader* lovrGraphicsGetShader(void);
|
|
|
|
void lovrGraphicsSetShader(struct Shader* shader);
|
2017-12-19 02:37:03 +00:00
|
|
|
void lovrGraphicsGetStencilTest(CompareMode* mode, int* value);
|
|
|
|
void lovrGraphicsSetStencilTest(CompareMode mode, int value);
|
2019-02-17 22:39:51 +00:00
|
|
|
Winding lovrGraphicsGetWinding(void);
|
2017-08-02 07:54:33 +00:00
|
|
|
void lovrGraphicsSetWinding(Winding winding);
|
2019-02-17 22:39:51 +00:00
|
|
|
bool lovrGraphicsIsWireframe(void);
|
2017-10-31 08:14:09 +00:00
|
|
|
void lovrGraphicsSetWireframe(bool wireframe);
|
2016-11-23 05:16:13 +00:00
|
|
|
|
|
|
|
// Transforms
|
2019-02-17 22:39:51 +00:00
|
|
|
void lovrGraphicsPush(void);
|
|
|
|
void lovrGraphicsPop(void);
|
|
|
|
void lovrGraphicsOrigin(void);
|
2018-11-27 23:03:05 +00:00
|
|
|
void lovrGraphicsTranslate(vec3 translation);
|
|
|
|
void lovrGraphicsRotate(quat rotation);
|
|
|
|
void lovrGraphicsScale(vec3 scale);
|
2018-03-05 07:06:34 +00:00
|
|
|
void lovrGraphicsMatrixTransform(mat4 transform);
|
2018-10-27 00:17:18 +00:00
|
|
|
void lovrGraphicsSetProjection(mat4 projection);
|
2016-11-23 05:16:13 +00:00
|
|
|
|
2018-08-09 01:08:28 +00:00
|
|
|
// Rendering
|
2018-07-16 00:05:06 +00:00
|
|
|
void lovrGraphicsClear(Color* color, float* depth, int* stencil);
|
2018-10-26 16:14:57 +00:00
|
|
|
void lovrGraphicsDiscard(bool color, bool depth, bool stencil);
|
2018-12-27 21:50:42 +00:00
|
|
|
void lovrGraphicsBatch(BatchRequest* req);
|
2019-02-17 22:39:51 +00:00
|
|
|
void lovrGraphicsFlush(void);
|
2019-04-05 11:58:29 +00:00
|
|
|
void lovrGraphicsFlushCanvas(struct Canvas* canvas);
|
|
|
|
void lovrGraphicsFlushShader(struct Shader* shader);
|
|
|
|
void lovrGraphicsFlushMaterial(struct Material* material);
|
|
|
|
void lovrGraphicsFlushMesh(struct Mesh* mesh);
|
2018-12-27 21:50:42 +00:00
|
|
|
void lovrGraphicsPoints(uint32_t count, float** vertices);
|
|
|
|
void lovrGraphicsLine(uint32_t count, float** vertices);
|
2019-04-05 11:58:29 +00:00
|
|
|
void lovrGraphicsTriangle(DrawStyle style, struct Material* material, uint32_t count, float** vertices);
|
2019-04-05 12:34:28 +00:00
|
|
|
void lovrGraphicsPlane(DrawStyle style, struct Material* material, mat4 transform, float u, float v, float w, float h);
|
2019-04-05 11:58:29 +00:00
|
|
|
void lovrGraphicsBox(DrawStyle style, struct Material* material, mat4 transform);
|
|
|
|
void lovrGraphicsArc(DrawStyle style, ArcMode mode, struct Material* material, mat4 transform, float r1, float r2, int segments);
|
|
|
|
void lovrGraphicsCircle(DrawStyle style, struct Material* material, mat4 transform, int segments);
|
|
|
|
void lovrGraphicsCylinder(struct Material* material, mat4 transform, float r1, float r2, bool capped, int segments);
|
|
|
|
void lovrGraphicsSphere(struct Material* material, mat4 transform, int segments);
|
|
|
|
void lovrGraphicsSkybox(struct Texture* texture, float angle, float ax, float ay, float az);
|
2018-12-25 08:28:56 +00:00
|
|
|
void lovrGraphicsPrint(const char* str, size_t length, mat4 transform, float wrap, HorizontalAlign halign, VerticalAlign valign);
|
2019-04-05 11:58:29 +00:00
|
|
|
void lovrGraphicsFill(struct Texture* texture, float u, float v, float w, float h);
|
2018-08-31 13:03:35 +00:00
|
|
|
#define lovrGraphicsStencil lovrGpuStencil
|
2018-08-09 00:53:59 +00:00
|
|
|
#define lovrGraphicsCompute lovrGpuCompute
|
2018-07-17 10:35:01 +00:00
|
|
|
|
2018-12-27 21:50:42 +00:00
|
|
|
// GPU
|
|
|
|
|
|
|
|
typedef struct {
|
2019-01-16 16:52:21 +00:00
|
|
|
bool compute;
|
2018-12-27 21:50:42 +00:00
|
|
|
bool singlepass;
|
|
|
|
} GpuFeatures;
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
bool initialized;
|
|
|
|
float pointSizes[2];
|
|
|
|
int textureSize;
|
|
|
|
int textureMSAA;
|
|
|
|
float textureAnisotropy;
|
|
|
|
int blockSize;
|
|
|
|
int blockAlign;
|
|
|
|
} GpuLimits;
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
int shaderSwitches;
|
|
|
|
int drawCalls;
|
|
|
|
} GpuStats;
|
2018-12-25 04:26:47 +00:00
|
|
|
|
|
|
|
typedef struct {
|
2019-04-05 11:58:29 +00:00
|
|
|
struct Mesh* mesh;
|
|
|
|
struct Canvas* canvas;
|
|
|
|
struct Shader* shader;
|
2018-12-25 04:26:47 +00:00
|
|
|
Pipeline pipeline;
|
2018-12-27 21:50:42 +00:00
|
|
|
DrawMode drawMode;
|
2018-12-25 04:26:47 +00:00
|
|
|
uint32_t instances;
|
2018-12-27 21:50:42 +00:00
|
|
|
uint32_t rangeStart;
|
|
|
|
uint32_t rangeCount;
|
2018-12-25 04:26:47 +00:00
|
|
|
uint32_t width : 15;
|
|
|
|
uint32_t height : 15;
|
|
|
|
bool stereo : 1;
|
|
|
|
} DrawCommand;
|
|
|
|
|
2018-11-16 10:26:56 +00:00
|
|
|
void lovrGpuInit(bool srgb, getProcAddressProc getProcAddress);
|
2019-02-17 22:39:51 +00:00
|
|
|
void lovrGpuDestroy(void);
|
2019-04-05 11:58:29 +00:00
|
|
|
void lovrGpuClear(struct Canvas* canvas, Color* color, float* depth, int* stencil);
|
|
|
|
void lovrGpuCompute(struct Shader* shader, int x, int y, int z);
|
|
|
|
void lovrGpuDiscard(struct Canvas* canvas, bool color, bool depth, bool stencil);
|
2018-12-27 21:50:42 +00:00
|
|
|
void lovrGpuDraw(DrawCommand* draw);
|
2018-08-31 13:03:35 +00:00
|
|
|
void lovrGpuStencil(StencilAction action, int replaceValue, StencilCallback callback, void* userdata);
|
2019-02-17 22:39:51 +00:00
|
|
|
void lovrGpuPresent(void);
|
|
|
|
void lovrGpuDirtyTexture(void);
|
|
|
|
void* lovrGpuLock(void);
|
2018-12-27 21:50:42 +00:00
|
|
|
void lovrGpuUnlock(void* lock);
|
|
|
|
void lovrGpuDestroyLock(void* lock);
|
2019-03-15 04:24:25 +00:00
|
|
|
const GpuFeatures* lovrGpuGetFeatures(void);
|
2019-02-17 22:39:51 +00:00
|
|
|
const GpuLimits* lovrGpuGetLimits(void);
|
|
|
|
const GpuStats* lovrGpuGetStats(void);
|