|
Vulkan Schnee 0.0.1
High-performance rendering engine
|
Wrapper for shader specialization data for compute pipelines. This usually only stores the thread count as that can depend on the hardware the engine is running on. More...
#include <PipelineMaterialPayload.h>
Classes | |
| struct | Data |
Public Member Functions | |
| ComputePipelineSpecializationData (uint32_t threadCount) | |
| Constructor. | |
| std::vector< VkSpecializationMapEntry > | getMapEntries () const override |
| Gets the specialization data which will be uploaded to a shader. | |
| const void * | getData () const override |
| Gets a pointer for the data for the specialization data. | |
| size_t | getDataSize () const override |
| Gets the size of the data stored in the result of getData() | |
| virtual uint32_t | getThreadCount () const |
| Getter for how man threads the compute shader this specialization is applied to should have. | |
| Public Member Functions inherited from Engine::Rendering::PipelineSpecializationData | |
| virtual | ~PipelineSpecializationData ()=default |
Private Attributes | |
| struct Engine::Rendering::ComputePipelineSpecializationData::Data | data |
Wrapper for shader specialization data for compute pipelines. This usually only stores the thread count as that can depend on the hardware the engine is running on.
Definition at line 79 of file PipelineMaterialPayload.h.
|
inline |
|
inlineoverridevirtual |
Gets a pointer for the data for the specialization data.
Implements Engine::Rendering::PipelineSpecializationData.
Definition at line 98 of file PipelineMaterialPayload.h.
References data.
|
inlineoverridevirtual |
Gets the size of the data stored in the result of getData()
Implements Engine::Rendering::PipelineSpecializationData.
Definition at line 104 of file PipelineMaterialPayload.h.
References data.
|
overridevirtual |
Gets the specialization data which will be uploaded to a shader.
Implements Engine::Rendering::PipelineSpecializationData.
|
inlinenodiscardvirtual |
Getter for how man threads the compute shader this specialization is applied to should have.
Definition at line 110 of file PipelineMaterialPayload.h.
References data.
|
private |
Referenced by ComputePipelineSpecializationData(), getData(), getDataSize(), and getThreadCount().