API Documentation
|
#include <Shader.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 | |
VulkanShaderManager (const ConstPointer< VulkanDevice > &device) | |
void | ensureCreated (const String &name) |
ConstPointer< VulkanShader > | getShader (const String &file, ShaderType type) |
void | addShader (const String &name, ShaderType type, File &file) |
void | addShader (const String &name, ShaderType type, const Buffer< char > &data) |
void | setInstance (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, DynamicPointer< VulkanShader >[ShaderType::e_shader_type_size]> | m_shader_map |
Dictionary< uint08, Buffer< char >[ShaderType::e_shader_type_size]> | m_data |
ConstPointer< VulkanDevice > | m_device |
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 |