float3
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -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 {
|
||||||
|
Reference in New Issue
Block a user