#include <shader.h>
◆ ~shader()
| virtual luna::renderer::shader::~shader |
( |
| ) |
|
|
virtualdefault |
◆ bind()
| virtual void luna::renderer::shader::bind |
( |
| ) |
const |
|
pure virtual |
◆ create() [1/2]
| ref< shader > luna::renderer::shader::create |
( |
const std::string & |
filepath, |
|
|
const shaderStage & |
stage |
|
) |
| |
|
static |
creates a shader from a filepath.
- Parameters
-
- Returns
- a shader reference.
◆ create() [2/2]
| ref< shader > luna::renderer::shader::create |
( |
const std::vector< uint8_t > & |
shaderSrc, |
|
|
const shaderStage & |
stage |
|
) |
| |
|
static |
creates a shader from compiled code.
- Parameters
-
| shaderSrc | the shader compiled src code |
- Returns
- a shader reference.
◆ createLayout()
| virtual void luna::renderer::shader::createLayout |
( |
| ) |
|
|
pure virtual |
◆ self()
| std::vector< uint32_t > luna::renderer::shader::self |
( |
| ) |
|
|
inline |
returns the shader compiled source.
◆ unbind()
| virtual void luna::renderer::shader::unbind |
( |
| ) |
const |
|
pure virtual |
◆ vulkanDevice
| friend class vulkanDevice |
|
friend |
◆ shaderLayout
◆ shaderName
| std::string luna::renderer::shader::shaderName |
◆ shaderSrc
| std::vector<uint32_t> luna::renderer::shader::shaderSrc |
◆ stage
The documentation for this class was generated from the following files:
- C:/Users/robbe/source/repos/lolrobbe2/luna/luna/src/core/rendering/shader.h
- C:/Users/robbe/source/repos/lolrobbe2/luna/luna/src/core/rendering/shader.cpp