shader input layouts

This commit is contained in:
Greg Wells
2025-06-06 11:40:08 -04:00
parent 3a69ed70ff
commit 6dd2057de1

View File

@@ -0,0 +1,25 @@
#pragma once
#include "stdint.h"
#include "stdlib.h"
typedef enum gnVertexFormat {
GN_FLOAT2
} gnVertexFormat;
typedef struct gnVertexAttribute {
uint32_t location;
gnVertexFormat format;
size_t offset;
} gnVertexAttribute;
typedef struct gnBufferAttribute {
uint32_t binding;
size_t size;
uint32_t attributeCount;
gnVertexAttribute* attributes;
} gnBufferAttribute;
typedef struct gnShaderInputLayout {
uint32_t bufferCount;
gnBufferAttribute* bufferAttributes;
} gnShaderInputLayout;