get image count and preferred surface format

This commit is contained in:
Greg Wells
2025-05-24 18:41:13 -04:00
parent a3f1201062
commit 339b2c75e0
15 changed files with 214 additions and 82 deletions

View File

@@ -12,7 +12,8 @@ typedef enum gnReturnCode_t {
GN_INVALID_INSTANCE,
GN_DEBUGGER_EXISTS,
GN_NO_SUPPORTED_FORMATS,
GN_NO_SUPPORTED_PRESENT_MODES
GN_NO_SUPPORTED_PRESENT_MODES,
GN_UNKNOWN_IMAGE_FORMAT
// GN_UNKNOWN_ERROR,
// GN_UNKNOWN_FRAMEBUFFER_ATTACHMENT,
@@ -45,5 +46,6 @@ static const char* gnErrorCodeToCString(enum gnReturnCode_t returnCode) {
case GN_DEBUGGER_EXISTS: return "GN_DEBUGGER_EXISTS";
case GN_NO_SUPPORTED_FORMATS: return "GN_NO_SUPPORTED_FORMATS";
case GN_NO_SUPPORTED_PRESENT_MODES: return "GN_NO_SUPPORTED_PRESENT_MODES";
case GN_UNKNOWN_IMAGE_FORMAT: return "GN_UNKNOWN_IMAGE_FORMAT";
}
}

View File

@@ -1,7 +1,7 @@
#pragma once
#include "stdint.h"
typedef struct gnVec2 {
typedef struct gnVec2_t {
union {
struct { float a, b; };
struct { float x, y; };
@@ -28,7 +28,7 @@ typedef struct gnVec2 {
typedef gnVec2 gnFVec2;
typedef gnVec2 gnFloat2;
typedef struct gnUInt2 {
typedef struct gnUInt2_t {
union {
struct { uint32_t a, b; };
struct { uint32_t x, y; };
@@ -52,7 +52,7 @@ typedef struct gnUInt2 {
#endif
} gnUInt2;
typedef struct gnInt2 {
typedef struct gnInt2_t {
union {
struct { int a, b; };
struct { int x, y; };

View File

@@ -1,6 +1,7 @@
#pragma once
typedef enum gnImageFormat_e {
GN_FORMAT_NONE,
GN_FORMAT_BGRA8_SRGB
} gnImageFormat;