Vookoo
|
Class for building shader modules and extracting metadata from shaders. More...
#include <vku.hpp>
Classes | |
struct | Variable |
A variable in a shader. More... | |
Public Member Functions | |
ShaderModule (const vk::Device &device, const std::string &filename) | |
Construct a shader module from a file. | |
template<class InIter > | |
ShaderModule (const vk::Device &device, InIter begin, InIter end) | |
Construct a shader module from a memory. | |
std::vector< Variable > | getVariables () const |
bool | ok () const |
VkShaderModule | module () |
std::ostream & | write (std::ostream &os) |
Class for building shader modules and extracting metadata from shaders.
|
inline |
Get a list of variables from the shader.
This exposes the Uniforms, inputs, outputs, push constants. See spv::StorageClass for more details.
|
inline |
Write a C++ consumable dump of the shader. Todo: make this more idiomatic.