Shader Effect Description. More...
#include <shader_effect_description.h>
Public Member Functions | |
ShaderEffectDescription () | |
BlendStateDescription & | blend () |
DepthStencilStateDescription & | depth_stencil () |
RasterizerStateDescription & | rasterizer () |
void | set_attribute (std::string name, VertexArrayBuffer &buffer, int size, VertexAttributeDataType type, size_t offset=0, int stride=0, bool normalize=false) |
void | set_attribute (std::string name, VertexArrayVector< char > &buffer, int size, bool normalize=false) |
void | set_attribute (std::string name, VertexArrayVector< Colorf > &buffer) |
void | set_attribute (std::string name, VertexArrayVector< float > &buffer) |
void | set_attribute (std::string name, VertexArrayVector< float > &buffer, int size, bool normalize=false) |
void | set_attribute (std::string name, VertexArrayVector< int > &buffer, int size, bool normalize=false) |
void | set_attribute (std::string name, VertexArrayVector< short > &buffer, int size, bool normalize=false) |
void | set_attribute (std::string name, VertexArrayVector< signed char > &buffer, bool normalize=false) |
void | set_attribute (std::string name, VertexArrayVector< signed int > &buffer, bool normalize=false) |
void | set_attribute (std::string name, VertexArrayVector< signed short > &buffer, bool normalize=false) |
void | set_attribute (std::string name, VertexArrayVector< unsigned char > &buffer, bool normalize=false) |
void | set_attribute (std::string name, VertexArrayVector< unsigned char > &buffer, int size, bool normalize=false) |
void | set_attribute (std::string name, VertexArrayVector< unsigned int > &buffer, bool normalize=false) |
void | set_attribute (std::string name, VertexArrayVector< unsigned int > &buffer, int size, bool normalize=false) |
void | set_attribute (std::string name, VertexArrayVector< unsigned short > &buffer, bool normalize=false) |
void | set_attribute (std::string name, VertexArrayVector< unsigned short > &buffer, int size, bool normalize=false) |
void | set_attribute (std::string name, VertexArrayVector< Vec2b > &buffer, bool normalize=false) |
void | set_attribute (std::string name, VertexArrayVector< Vec2f > &buffer) |
void | set_attribute (std::string name, VertexArrayVector< Vec2i > &buffer, bool normalize=false) |
void | set_attribute (std::string name, VertexArrayVector< Vec2s > &buffer, bool normalize=false) |
void | set_attribute (std::string name, VertexArrayVector< Vec2ub > &buffer, bool normalize=false) |
void | set_attribute (std::string name, VertexArrayVector< Vec2ui > &buffer, bool normalize=false) |
void | set_attribute (std::string name, VertexArrayVector< Vec2us > &buffer, bool normalize=false) |
void | set_attribute (std::string name, VertexArrayVector< Vec3b > &buffer, bool normalize=false) |
void | set_attribute (std::string name, VertexArrayVector< Vec3f > &buffer) |
void | set_attribute (std::string name, VertexArrayVector< Vec3i > &buffer, bool normalize=false) |
void | set_attribute (std::string name, VertexArrayVector< Vec3s > &buffer, bool normalize=false) |
void | set_attribute (std::string name, VertexArrayVector< Vec3ub > &buffer, bool normalize=false) |
void | set_attribute (std::string name, VertexArrayVector< Vec3ui > &buffer, bool normalize=false) |
void | set_attribute (std::string name, VertexArrayVector< Vec3us > &buffer, bool normalize=false) |
void | set_attribute (std::string name, VertexArrayVector< Vec4b > &buffer, bool normalize=false) |
void | set_attribute (std::string name, VertexArrayVector< Vec4f > &buffer) |
void | set_attribute (std::string name, VertexArrayVector< Vec4i > &buffer, bool normalize=false) |
void | set_attribute (std::string name, VertexArrayVector< Vec4s > &buffer, bool normalize=false) |
void | set_attribute (std::string name, VertexArrayVector< Vec4ub > &buffer, bool normalize=false) |
void | set_attribute (std::string name, VertexArrayVector< Vec4ui > &buffer, bool normalize=false) |
void | set_attribute (std::string name, VertexArrayVector< Vec4us > &buffer, bool normalize=false) |
void | set_attribute_screen_quad (std::string name) |
void | set_attribute_uv_quad (std::string name) |
void | set_compute_shader (std::string code, ShaderLanguage language=ShaderLanguage::glsl) |
void | set_define (std::string name, std::string value="1") |
void | set_depth_data (RenderBuffer buffer) |
void | set_depth_data (Texture texture) |
void | set_draw_count (int count) |
void | set_elements (ElementArrayBuffer &element_array, VertexAttributeDataType indices_type) |
void | set_elements (ElementArrayVector< unsigned char > &element_array) |
void | set_elements (ElementArrayVector< unsigned int > &element_array) |
void | set_elements (ElementArrayVector< unsigned short > &element_array) |
void | set_frag_data (std::string name, RenderBuffer buffer) |
void | set_frag_data (std::string name, Texture texture) |
void | set_frag_data_to_back_buffer (std::string name) |
void | set_fragment_shader (std::string code, ShaderLanguage language=ShaderLanguage::glsl) |
void | set_glsl_version (int version=330) |
void | set_image (std::string name, Resource< Texture > texture) |
void | set_stencil_data (RenderBuffer buffer) |
void | set_stencil_data (Texture texture) |
void | set_storage (std::string name, Resource< StorageBuffer > values) |
void | set_texture (std::string name, Resource< Texture > texture) |
void | set_uniform_block (std::string name, Resource< UniformBuffer > values) |
void | set_vertex_shader (std::string code, ShaderLanguage language=ShaderLanguage::glsl) |
Friends | |
class | ShaderEffect |
Shader Effect Description.
...
clan::ShaderEffectDescription::ShaderEffectDescription | ( | ) |
BlendStateDescription & clan::ShaderEffectDescription::blend | ( | ) |
DepthStencilStateDescription & clan::ShaderEffectDescription::depth_stencil | ( | ) |
RasterizerStateDescription & clan::ShaderEffectDescription::rasterizer | ( | ) |
void clan::ShaderEffectDescription::set_attribute | ( | std::string | name, |
VertexArrayBuffer & | buffer, | ||
int | size, | ||
VertexAttributeDataType | type, | ||
size_t | offset = 0, | ||
int | stride = 0, | ||
bool | normalize = false ) |
Referenced by set_attribute(), set_attribute(), set_attribute(), set_attribute(), set_attribute(), set_attribute(), set_attribute(), set_attribute(), set_attribute(), set_attribute(), set_attribute(), set_attribute(), set_attribute(), set_attribute(), set_attribute(), set_attribute(), set_attribute(), set_attribute(), set_attribute(), set_attribute(), set_attribute(), set_attribute(), set_attribute(), set_attribute(), set_attribute(), set_attribute(), set_attribute(), set_attribute(), set_attribute(), set_attribute(), set_attribute(), set_attribute(), set_attribute(), set_attribute(), set_attribute(), and set_attribute().
|
inline |
References set_attribute(), and clan::type_byte.
|
inline |
References set_attribute(), and clan::type_float.
|
inline |
References set_attribute(), and clan::type_float.
|
inline |
References set_attribute(), and clan::type_float.
|
inline |
References set_attribute(), and clan::type_int.
|
inline |
References set_attribute(), and clan::type_short.
|
inline |
References set_attribute(), and clan::type_byte.
|
inline |
References set_attribute(), and clan::type_int.
|
inline |
References set_attribute(), and clan::type_short.
|
inline |
References set_attribute(), and clan::type_unsigned_byte.
|
inline |
References set_attribute(), and clan::type_unsigned_byte.
|
inline |
References set_attribute(), and clan::type_unsigned_int.
|
inline |
References set_attribute(), and clan::type_unsigned_int.
|
inline |
References set_attribute(), and clan::type_unsigned_short.
|
inline |
References set_attribute(), and clan::type_unsigned_short.
|
inline |
References set_attribute(), and clan::type_byte.
|
inline |
References set_attribute(), and clan::type_float.
|
inline |
References set_attribute(), and clan::type_int.
|
inline |
References set_attribute(), and clan::type_short.
|
inline |
References set_attribute(), and clan::type_unsigned_byte.
|
inline |
References set_attribute(), and clan::type_unsigned_int.
|
inline |
References set_attribute(), and clan::type_unsigned_short.
|
inline |
References set_attribute(), and clan::type_byte.
|
inline |
References set_attribute(), and clan::type_float.
|
inline |
References set_attribute(), and clan::type_int.
|
inline |
References set_attribute(), and clan::type_short.
|
inline |
References set_attribute(), and clan::type_unsigned_byte.
|
inline |
References set_attribute(), and clan::type_unsigned_int.
|
inline |
References set_attribute(), and clan::type_unsigned_short.
|
inline |
References set_attribute(), and clan::type_byte.
|
inline |
References set_attribute(), and clan::type_float.
|
inline |
References set_attribute(), and clan::type_int.
|
inline |
References set_attribute(), and clan::type_short.
|
inline |
References set_attribute(), and clan::type_unsigned_byte.
|
inline |
References set_attribute(), and clan::type_unsigned_int.
|
inline |
References set_attribute(), and clan::type_unsigned_short.
void clan::ShaderEffectDescription::set_attribute_screen_quad | ( | std::string | name | ) |
void clan::ShaderEffectDescription::set_attribute_uv_quad | ( | std::string | name | ) |
void clan::ShaderEffectDescription::set_compute_shader | ( | std::string | code, |
ShaderLanguage | language = ShaderLanguage::glsl ) |
void clan::ShaderEffectDescription::set_define | ( | std::string | name, |
std::string | value = "1" ) |
void clan::ShaderEffectDescription::set_depth_data | ( | RenderBuffer | buffer | ) |
void clan::ShaderEffectDescription::set_depth_data | ( | Texture | texture | ) |
void clan::ShaderEffectDescription::set_draw_count | ( | int | count | ) |
void clan::ShaderEffectDescription::set_elements | ( | ElementArrayBuffer & | element_array, |
VertexAttributeDataType | indices_type ) |
Referenced by set_elements(), set_elements(), and set_elements().
|
inline |
References set_elements(), and clan::type_unsigned_byte.
|
inline |
References set_elements(), and clan::type_unsigned_int.
|
inline |
References set_elements(), and clan::type_unsigned_short.
void clan::ShaderEffectDescription::set_frag_data | ( | std::string | name, |
RenderBuffer | buffer ) |
void clan::ShaderEffectDescription::set_frag_data | ( | std::string | name, |
Texture | texture ) |
void clan::ShaderEffectDescription::set_frag_data_to_back_buffer | ( | std::string | name | ) |
void clan::ShaderEffectDescription::set_fragment_shader | ( | std::string | code, |
ShaderLanguage | language = ShaderLanguage::glsl ) |
void clan::ShaderEffectDescription::set_glsl_version | ( | int | version = 330 | ) |
void clan::ShaderEffectDescription::set_stencil_data | ( | RenderBuffer | buffer | ) |
void clan::ShaderEffectDescription::set_stencil_data | ( | Texture | texture | ) |
void clan::ShaderEffectDescription::set_storage | ( | std::string | name, |
Resource< StorageBuffer > | values ) |
void clan::ShaderEffectDescription::set_uniform_block | ( | std::string | name, |
Resource< UniformBuffer > | values ) |
void clan::ShaderEffectDescription::set_vertex_shader | ( | std::string | code, |
ShaderLanguage | language = ShaderLanguage::glsl ) |
|
friend |