API Documentation
|
Manages all active shaders in a VulkanSession. More...
#include <VulkanShader.h>
Public Types | |
enum | ShaderType { e_simple_points , e_points , e_linework , e_solid , e_solid_grid , e_solid_texture , e_shader_type_size , e_all } |
Public Member Functions | |
void | addShader (const String &name, ShaderType type, const Buffer< char > &data) |
void | addShader (const String &name, ShaderType type, File &file) |
void | ensureCreated (const String &name) |
ConstPointer< VulkanShader > | getShader (const String &file, ShaderType type) |
void | setInstance (const ConstPointer< VulkanDevice > &device) |
VulkanShaderManager (const ConstPointer< VulkanDevice > &device) | |
Static Public Attributes | |
static const String | formats [6] = { "points_s", "points", "linework", "solid", "solid_grid", "solid_texture" } |
Protected Attributes | |
Dictionary< uint08, Buffer< char >[ShaderType::e_shader_type_size]> | m_data |
ConstPointer< VulkanDevice > | m_device |
Dictionary< uint08, DynamicPointer< VulkanShader >[ShaderType::e_shader_type_size]> | m_shader_map |
Manages all active shaders in a VulkanSession.
enum ShaderType |
VulkanShaderManager | ( | const ConstPointer< VulkanDevice > & | device | ) |
void addShader | ( | const String & | name, |
ShaderType | type, | ||
const Buffer< char > & | data ) |
void addShader | ( | const String & | name, |
ShaderType | type, | ||
File & | file ) |
void ensureCreated | ( | const String & | name | ) |
ConstPointer< VulkanShader > getShader | ( | const String & | file, |
ShaderType | type ) |
void setInstance | ( | const ConstPointer< VulkanDevice > & | device | ) |
|
inlinestatic |
|
protected |
|
protected |
|
protected |