add some stuff to utils
This commit is contained in:
@@ -4,6 +4,7 @@ typedef enum gnReturnCode_t {
|
|||||||
GN_SUCCESS,
|
GN_SUCCESS,
|
||||||
GN_UNKNOWN_RENDERINGAPI,
|
GN_UNKNOWN_RENDERINGAPI,
|
||||||
GN_UNSUPPORTED_RENDERING_API,
|
GN_UNSUPPORTED_RENDERING_API,
|
||||||
|
GN_UNSUPPORTED_IMAGE_FORMAT,
|
||||||
GN_UNABLE_TO_LOAD_DYNAMIC_LIBARRY,
|
GN_UNABLE_TO_LOAD_DYNAMIC_LIBARRY,
|
||||||
GN_FAILED_CREATE_INSTANCE,
|
GN_FAILED_CREATE_INSTANCE,
|
||||||
GN_FAILED_TO_CREATE_DEBUGGER,
|
GN_FAILED_TO_CREATE_DEBUGGER,
|
||||||
@@ -88,5 +89,6 @@ static const char* gnErrorCodeToCString(enum gnReturnCode_t returnCode) {
|
|||||||
case GN_FAILED_TO_CREATE_IMAGE: return "GN_FAILED_TO_CREATE_IMAGE";
|
case GN_FAILED_TO_CREATE_IMAGE: return "GN_FAILED_TO_CREATE_IMAGE";
|
||||||
case GN_FAILED_TO_CREATE_SAMPLER: return "GN_FAILED_TO_CREATE_SAMPLER";
|
case GN_FAILED_TO_CREATE_SAMPLER: return "GN_FAILED_TO_CREATE_SAMPLER";
|
||||||
case GN_FAILED_TO_LOAD_FUNCTION: return "GN_FAILED_TO_LOAD_FUNCTION";
|
case GN_FAILED_TO_LOAD_FUNCTION: return "GN_FAILED_TO_LOAD_FUNCTION";
|
||||||
|
case GN_UNSUPPORTED_IMAGE_FORMAT: return "GN_UNSUPPORTED_IMAGE_FORMAT";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -45,6 +45,7 @@ typedef struct gnUInt3 {
|
|||||||
union {
|
union {
|
||||||
struct { uint32_t a, b, c; };
|
struct { uint32_t a, b, c; };
|
||||||
struct { uint32_t x, y, z; };
|
struct { uint32_t x, y, z; };
|
||||||
|
struct { uint32_t width, height, depth; };
|
||||||
};
|
};
|
||||||
|
|
||||||
#ifdef GN_UTILS_CPP
|
#ifdef GN_UTILS_CPP
|
||||||
@@ -66,6 +67,9 @@ typedef struct gnUInt3 {
|
|||||||
#endif
|
#endif
|
||||||
} gnUInt3;
|
} gnUInt3;
|
||||||
|
|
||||||
|
typedef gnUInt3 gnUVec3;
|
||||||
|
typedef gnUInt3 gnExtent3D;
|
||||||
|
|
||||||
typedef struct gnInt3 {
|
typedef struct gnInt3 {
|
||||||
union {
|
union {
|
||||||
struct { int a, b, c; };
|
struct { int a, b, c; };
|
||||||
|
Reference in New Issue
Block a user