Foray Library
rapid prototyping framework for crossplatform development of vulkan hardware ray tracing applications
|
Helper class to manage unique Rt ShaderModules. More...
#include <foray_rtshadercollection.hpp>
Classes | |
struct | Entry |
Public Member Functions | |
void | Add (core::ShaderModule *module, RtShaderType type, const char *entryPointName="main") |
Add a shadermodule. If a new module, also adds an entry to the ShaderStageCi vector. | |
void | Clear () |
Reset. | |
uint32_t | IndexOf (core::ShaderModule *module) const |
Get index of a module in the ShaderStageCi vector. | |
Protected Attributes | |
std::unordered_map< core::ShaderModule *, Entry > | mEntries |
std::vector< VkPipelineShaderStageCreateInfo > | mShaderStageCis |
Helper class to manage unique Rt ShaderModules.
void foray::rtpipe::RtShaderCollection::Add | ( | core::ShaderModule * | module, |
RtShaderType | type, | ||
const char * | entryPointName = "main" |
||
) |
Add a shadermodule. If a new module, also adds an entry to the ShaderStageCi vector.
module | Module |
type | Shader Type |
void foray::rtpipe::RtShaderCollection::Clear | ( | ) |
Reset.
uint32_t foray::rtpipe::RtShaderCollection::IndexOf | ( | core::ShaderModule * | module | ) | const |
Get index of a module in the ShaderStageCi vector.
|
protected |
|
protected |