load device functions

This commit is contained in:
Greg Wells
2025-06-29 07:31:50 -04:00
parent 502634770e
commit 7802f567c2
7 changed files with 305 additions and 4 deletions

View File

@@ -0,0 +1,25 @@
#pragma once
#include "stdint.h"
#include "stdlib.h"
typedef enum gnVertexFormat {
GN_FLOAT2, GN_FLOAT3
} 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;