Shader Object.
More...
#include <shader_object.h>
|
static std::shared_ptr< ShaderObject > | create (const GraphicContextPtr &gc, ShaderType type, const std::string &source) |
| Constructs a shader. More...
|
|
static std::shared_ptr< ShaderObject > | create (const GraphicContextPtr &gc, ShaderType type, const void *bytecode, int bytecode_size) |
|
static std::shared_ptr< ShaderObject > | load (const GraphicContextPtr &gc, ShaderType type, const std::string &fullname) |
| Load. More...
|
|
static std::shared_ptr< ShaderObject > | load (const GraphicContextPtr &gc, ShaderType type, const IODevicePtr &file) |
|
static std::shared_ptr< ShaderObject > | load_and_compile (const GraphicContextPtr &gc, ShaderType type, const std::string &filename) |
| Load and compile. More...
|
|
static std::shared_ptr< ShaderObject > | load_and_compile (const GraphicContextPtr &gc, ShaderType type, const IODevicePtr &file) |
|
virtual void uicore::ShaderObject::compile |
( |
| ) |
|
|
pure virtual |
Compile program.
An exception will be thrown if the compiling fails
virtual std::string uicore::ShaderObject::info_log |
( |
| ) |
const |
|
pure virtual |
Get shader object's info log.
virtual std::string uicore::ShaderObject::shader_source |
( |
| ) |
const |
|
pure virtual |
virtual ShaderType uicore::ShaderObject::shader_type |
( |
| ) |
const |
|
pure virtual |
virtual bool uicore::ShaderObject::try_compile |
( |
| ) |
|
|
pure virtual |
Compile program.
If the compiling fails, info_log() will return the compile log
The documentation for this class was generated from the following file: