Class representing Vulkan shader modules in SPIR-V representation.
More...
#include <Program.h>
Class representing Vulkan shader modules in SPIR-V representation.
Program objects hold the SPIR-V code needed to run shader programs in the device. They are created using Session::createProgram methods.
auto program = session->createProgram("path_to_spir-v.spv");
static std::shared_ptr< ll::Session > create()
Creates a new ll::Session object.
◆ Program() [1/4]
◆ Program() [2/4]
ll::Program::Program |
( |
const Program & |
program | ) |
|
|
delete |
◆ Program() [3/4]
ll::Program::Program |
( |
Program && |
program | ) |
|
|
delete |
◆ Program() [4/4]
ll::Program::Program |
( |
const std::shared_ptr< ll::vulkan::Device > & |
device, |
|
|
const std::vector< uint8_t > & |
spirvCode |
|
) |
| |
Constructs the object from a Vulkan device and SPIR-V code.
- Parameters
-
[in] | session | The session this node was created from. |
[in] | device | The Vulkan device. |
[in] | spirvCode | The SPIR-V code. |
◆ ~Program()
ll::Program::~Program |
( |
| ) |
|
◆ getShaderModule()
vk::ShaderModule ll::Program::getShaderModule |
( |
| ) |
const |
|
noexcept |
Gets the corresponding Vulkan shader module for this program object.
- Returns
- The shader module.
◆ getSpirV()
const std::vector<uint8_t>& ll::Program::getSpirV |
( |
| ) |
const |
|
noexcept |
Gets the SPIR-V code of this object.
- Returns
- The SPIR-V code.
◆ operator=() [1/2]
◆ operator=() [2/2]
The documentation for this class was generated from the following file:
- /root/project/lluvia/cpp/core/include/lluvia/core/Program.h