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