diff --git a/utils/gryphn_error_code.h b/utils/gryphn_error_code.h index c25b2c8..ba0cc84 100644 --- a/utils/gryphn_error_code.h +++ b/utils/gryphn_error_code.h @@ -4,6 +4,7 @@ typedef enum gnReturnCode_t { GN_SUCCESS, GN_UNKNOWN_RENDERINGAPI, GN_UNSUPPORTED_RENDERING_API, + GN_UNSUPPORTED_IMAGE_FORMAT, GN_UNABLE_TO_LOAD_DYNAMIC_LIBARRY, GN_FAILED_CREATE_INSTANCE, 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_SAMPLER: return "GN_FAILED_TO_CREATE_SAMPLER"; case GN_FAILED_TO_LOAD_FUNCTION: return "GN_FAILED_TO_LOAD_FUNCTION"; + case GN_UNSUPPORTED_IMAGE_FORMAT: return "GN_UNSUPPORTED_IMAGE_FORMAT"; } } diff --git a/utils/math/gryphn_vec3.h b/utils/math/gryphn_vec3.h index 8af2d71..38443d7 100644 --- a/utils/math/gryphn_vec3.h +++ b/utils/math/gryphn_vec3.h @@ -45,6 +45,7 @@ typedef struct gnUInt3 { union { struct { uint32_t a, b, c; }; struct { uint32_t x, y, z; }; + struct { uint32_t width, height, depth; }; }; #ifdef GN_UTILS_CPP @@ -66,6 +67,9 @@ typedef struct gnUInt3 { #endif } gnUInt3; +typedef gnUInt3 gnUVec3; +typedef gnUInt3 gnExtent3D; + typedef struct gnInt3 { union { struct { int a, b, c; };