LiteFX::Rendering::Backends::VulkanComputePipelineBuilder::shaderProgram¶
Adds a shader program to the pipeline.
Synopsis¶
Declared in <litefx/rendering_builders.hpp>
template<typename TSelf>
constexpr TSelf&& shaderProgram(this
TSelf&& self,
SharedPtr<shader_program_type> program);
Description¶
Note that a pipeline must only have one shader program. If this method is called twice, the second call will overwrite the shader program set by the first call.
Parameters¶
| Name | Description |
|---|---|
| program | The program to add to the pipeline layout. |