|
vc::Error | LoadShaderFromFile (const std::string &path) |
| Load a shader from a base path (e.g. ./shader_mesh to load ./shader_mesh.vert and ./shader_mesh.frag) Loading is not done when this function is called, only paths are set.
|
|
void | AddVertexBufferToLayout (const ShaderVertexFormat format, const uint32_t binding, const uint32_t location, const uint32_t offset) |
| Add a vertex buffer to the layout.
|
|
void | AddVertexBufferToLayout (const VertexBufferLayout &layout) |
| Add a vertex buffer to the layout.
|
|
void | AddVertexBufferToLayout (const std::vector< VertexBufferLayout > &layouts) |
| Add a vertex buffer to the layout.
|
|
virtual void | SetMultiSamplingCount (const int samples)=0 |
|
vc::Error | SetLineWidth (const float width) |
|
vc::Error | SetDepthTest (const bool enable) |
|
vc::Error | SetDepthWrite (const bool enable) |
|
void | SetRenderingPipelineType (const RenderingPipelineType type) |
|
void | SetRenderingPipelineIndex (const uint32_t index) |
|
template<class T > |
T * | As () |
|
template<class T > |
const T * | As () const |
|
template<class T > |
T * | ConstAs () const |
|
template<class T > |
T * | RAs () |
|
template<class T > |
const T * | RAs () const |
|
void | IncRefCount () |
|
void | DecRefCount () |
|
virtual void | Destroy () override |
| /!\ THIS FUNCTION MUST BE CALLED FOR DESTRUCTION, DO NOT USE delete
|
|
| PluginObject (const PluginType type) |
|
PluginType | GetType () const override |
|
template<class T > |
T * | DAs () |
|
template<class T > |
const T * | DAs () const |
|
template<typename T > |
T * | As () |
|
void | SetResource (const GraphicsCachedResourceHolder &resource) |
|
void | SetResource (const SPtr< GraphicsCachedResource > &resource) |
|
|
virtual void | _SetLineWidth (const float width)=0 |
|
virtual void | _SetDepthTest (const bool enable)=0 |
|
virtual void | _SetDepthWrite (const bool enable)=0 |
|
virtual vc::Error | _LoadShader (const std::string &path)=0 |
|
virtual void | _AddVertexBufferToLayout (const uint32_t vertexSize, const uint32_t binding, const uint32_t location, const uint32_t offset, const ShaderVertexFormat format)=0 |
|
virtual vc::Error | _ReloadShader ()=0 |
|
vc::Error | _ReloadShaderAfterSettings () |
|
const SPtr< GraphicsCachedResource > & | _GetResourceToCache () const |
|
SPtr< GraphicsCachedResource > & | _GetResourceToCache () |
|
void | _LoadFromCache (const SPtr< GraphicsCachedResource > &cache) |
|
|
RenderingPipelineType | _renderingPipelineType |
|
uint32_t | _renderingPipelineIndex |
|
bool | _loaded |
|
SPtr< GraphicsCachedResource > | _resource |
|
◆ AddVertexBufferToLayout() [1/3]
void venom::common::ShaderPipelineImpl::AddVertexBufferToLayout |
( |
const ShaderVertexFormat | format, |
|
|
const uint32_t | binding, |
|
|
const uint32_t | location, |
|
|
const uint32_t | offset ) |
Add a vertex buffer to the layout.
- Parameters
-
format | Format of the vertex buffer |
binding | Binding of the vertex buffer (location where data comes from in the buffer) |
location | Location of the vertex buffer (location where data goes to in the shader) |
offset | Offset of the vertex buffer |
◆ AddVertexBufferToLayout() [2/3]
void venom::common::ShaderPipelineImpl::AddVertexBufferToLayout |
( |
const std::vector< VertexBufferLayout > & | layouts | ) |
|
Add a vertex buffer to the layout.
- Parameters
-
layouts | Layouts of the vertex buffer |
◆ AddVertexBufferToLayout() [3/3]
void venom::common::ShaderPipelineImpl::AddVertexBufferToLayout |
( |
const VertexBufferLayout & | layout | ) |
|
Add a vertex buffer to the layout.
- Parameters
-
layout | Layout of the vertex buffer |
◆ LoadShaderFromFile()
vc::Error venom::common::ShaderPipelineImpl::LoadShaderFromFile |
( |
const std::string & | path | ) |
|
Load a shader from a base path (e.g. ./shader_mesh to load ./shader_mesh.vert and ./shader_mesh.frag) Loading is not done when this function is called, only paths are set.
- Parameters
-
- Returns
- error
The documentation for this class was generated from the following files:
- /Users/kevinpruvost/Bossing/Perso/VenomEngine/lib/common/include/venom/common/plugin/graphics/ShaderPipeline.h
- /Users/kevinpruvost/Bossing/Perso/VenomEngine/lib/common/src/ShaderPipeline.cc