Uniform layouts

This commit is contained in:
Greg Wells
2025-06-07 14:46:35 -04:00
parent 77002cd26a
commit 813760678b
4 changed files with 54 additions and 23 deletions

View File

@@ -83,14 +83,13 @@ typedef struct gnGraphicsPipelineInfo_t {
struct gnCullMode_t cullMode;
struct gnColorBlending_t colorBlending;
struct gnUniformLayout_t* uniformLayout;
uint32_t subpassIndex;
gnRenderPassDescriptorHandle renderPassDescriptor;
uint32_t shaderModuleCount;
gnShaderModuleHandle* shaderModules;
gnShaderInputLayout shaderInputLayout;
gnUniformLayout uniformLayout;
} gnGraphicsPipelineInfo;
#ifdef GN_REVEAL_IMPL

View File

@@ -1,6 +1,18 @@
#pragma once
#include "stdint.h"
#include "core/shader_module/gryphn_shader_module.h"
typedef struct gnUniformLayout_t {
uint32_t pushConstantCount;
typedef enum gnUniformType {
GN_UNIFORM_BUFFER
} gnUniformType;
typedef struct gnUniformBinding {
uint32_t binding;
gnUniformType type;
gnShaderModuleStage stage;
} gnUniformBinding;
typedef struct gnUniformLayout {
uint32_t uniformBindingCount;
gnUniformBinding* uniformBindings;
} gnUniformLayout;