shaders::Shader
kn::shaders::Shader Declared in kraken/graphics/Shaders.hpp
At a glance
9 membersReference
C++ APIShader()=deleteShader(const std::filesystem::path &fragmentBasePath, uint32_t uniformBufferCount=0, uint32_t samplerCount=1, const std::vector< uint32_t > &storageBufferSizes={})No description in the source header.
~Shader
function~Shader()No description in the source header.
No description in the source header.
bind
functionvoid bind() constNo description in the source header.
unbind
functionvoid unbind() constNo description in the source header.
setTextureSampler
functionNo description in the source header.
void setStorageBufferData(uint32_t binding, const void *data, uint32_t length)template <typename StorageBufferType>
void setStorageBufferData(const uint32_t binding, const StorageBufferType &data)No description in the source header.
setUniformData
functionvoid setUniformData(uint32_t binding, const void *data, uint32_t length) constNo description in the source header.
setUniform
functiontemplate <typename UniformType>
void setUniform(const uint32_t binding, const UniformType &data) constNo description in the source header.