This commit is contained in:
Greg Wells
2025-06-06 19:50:40 -04:00
parent 516f2122a1
commit 2f1011bd9c
3 changed files with 3 additions and 1 deletions

View File

@@ -22,6 +22,7 @@ MTLBlendOperation vkGryphnBlendOperation(enum gnBlendOperation_e operation) {
MTLVertexFormat mtlGryphnVertexFormat(gnVertexFormat format) { MTLVertexFormat mtlGryphnVertexFormat(gnVertexFormat format) {
switch (format) { switch (format) {
case GN_FLOAT2: return MTLVertexFormatFloat2; case GN_FLOAT2: return MTLVertexFormatFloat2;
case GN_FLOAT3: return MTLVertexFormatFloat3;
} }
} }

View File

@@ -57,6 +57,7 @@ VkBlendOp vkGryphnBlendOperation(enum gnBlendOperation_e operation) {
VkFormat vkGryphnVertexFormat(gnVertexFormat format) { VkFormat vkGryphnVertexFormat(gnVertexFormat format) {
switch (format) { switch (format) {
case GN_FLOAT2: return VK_FORMAT_R32G32_SFLOAT; case GN_FLOAT2: return VK_FORMAT_R32G32_SFLOAT;
case GN_FLOAT3: return VK_FORMAT_R32G32B32_SFLOAT;
} }
} }

View File

@@ -3,7 +3,7 @@
#include "stdlib.h" #include "stdlib.h"
typedef enum gnVertexFormat { typedef enum gnVertexFormat {
GN_FLOAT2 GN_FLOAT2, GN_FLOAT3
} gnVertexFormat; } gnVertexFormat;
typedef struct gnVertexAttribute { typedef struct gnVertexAttribute {