Vookoo
Classes | Public Member Functions | List of all members
vku::ShaderModule Class Reference

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< VariablegetVariables () const
 
bool ok () const
 
VkShaderModule module ()
 
std::ostream & write (std::ostream &os)
 

Detailed Description

Class for building shader modules and extracting metadata from shaders.

Member Function Documentation

std::vector<Variable> vku::ShaderModule::getVariables ( ) const
inline

Get a list of variables from the shader.

This exposes the Uniforms, inputs, outputs, push constants. See spv::StorageClass for more details.

std::ostream& vku::ShaderModule::write ( std::ostream &  os)
inline

Write a C++ consumable dump of the shader. Todo: make this more idiomatic.


The documentation for this class was generated from the following file: