|
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 EngineCore::PipelineSpecializationData | |
| virtual | ~PipelineSpecializationData ()=default |
Private Attributes | |
| struct EngineCore::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 80 of file PipelineMaterialPayload.h.
|
inline |
|
inlineoverridevirtual |
Gets a pointer for the data for the specialization data.
Implements EngineCore::PipelineSpecializationData.
Definition at line 99 of file PipelineMaterialPayload.h.
References data.
|
inlineoverridevirtual |
Gets the size of the data stored in the result of getData()
Implements EngineCore::PipelineSpecializationData.
Definition at line 105 of file PipelineMaterialPayload.h.
References data.
|
overridevirtual |
Gets the specialization data which will be uploaded to a shader.
Implements EngineCore::PipelineSpecializationData.
Definition at line 14 of file PipelineMaterialPayload.cpp.
|
inlinenodiscardvirtual |
Getter for how man threads the compute shader this specialization is applied to should have.
Definition at line 111 of file PipelineMaterialPayload.h.
References data.
|
private |
Referenced by ComputePipelineSpecializationData(), getData(), getDataSize(), and getThreadCount().