Kohi Game Engine
vulkan_shader_config Struct Reference

Internal shader configuration generated by vulkan_shader_create(). More...

#include <vulkan_types.h>

Data Fields

u8 stage_count
 The number of shader stages in this shader. More...
 
vulkan_shader_stage_config stages [VULKAN_SHADER_MAX_STAGES]
 The configuration for every stage of this shader. More...
 
VkDescriptorPoolSize pool_sizes [2]
 An array of descriptor pool sizes. More...
 
u16 max_descriptor_set_count
 The max number of descriptor sets that can be allocated from this shader. Should typically be a decently high number. More...
 
u8 descriptor_set_count
 The total number of descriptor sets configured for this shader. Is 1 if only using global uniforms/samplers; otherwise 2. More...
 
vulkan_descriptor_set_config descriptor_sets [2]
 Descriptor sets, max of 2. Index 0=global, 1=instance. More...
 
VkVertexInputAttributeDescription attributes [VULKAN_SHADER_MAX_ATTRIBUTES]
 An array of attribute descriptions for this shader. More...
 
face_cull_mode cull_mode
 Face culling mode, provided by the front end. More...
 

Detailed Description

Internal shader configuration generated by vulkan_shader_create().

Field Documentation

◆ attributes

VkVertexInputAttributeDescription attributes[VULKAN_SHADER_MAX_ATTRIBUTES]

An array of attribute descriptions for this shader.

◆ cull_mode

face_cull_mode cull_mode

Face culling mode, provided by the front end.

◆ descriptor_set_count

u8 descriptor_set_count

The total number of descriptor sets configured for this shader. Is 1 if only using global uniforms/samplers; otherwise 2.

◆ descriptor_sets

vulkan_descriptor_set_config descriptor_sets[2]

Descriptor sets, max of 2. Index 0=global, 1=instance.

◆ max_descriptor_set_count

u16 max_descriptor_set_count

The max number of descriptor sets that can be allocated from this shader. Should typically be a decently high number.

◆ pool_sizes

VkDescriptorPoolSize pool_sizes[2]

An array of descriptor pool sizes.

◆ stage_count

u8 stage_count

The number of shader stages in this shader.

◆ stages

The configuration for every stage of this shader.


The documentation for this struct was generated from the following file: