CLASS v1.8.0

shaders::Shader

kn::shaders::Shader

Declared in kraken/graphics/Shaders.hpp

Reference

C++ API

Shader

function4 overloads
Shader()=delete
Shader(const std::filesystem::path &fragmentBasePath, uint32_t uniformBufferCount=0, uint32_t samplerCount=1, const std::vector< uint32_t > &storageBufferSizes={})
Shader(const Shader &)=delete
Shader(Shader &&other) noexcept

No description in the source header.

~Shader

function
~Shader()

No description in the source header.

operator=

function2 overloads
Shader & operator=(const Shader &)=delete
Shader & operator=(Shader &&other) noexcept

No description in the source header.

bind

function
void bind() const

No description in the source header.

unbind

function
void unbind() const

No description in the source header.

void setTextureSampler(const uint32_t binding, const Texture &texture, const Sampler &sampler)

No description in the source header.

setStorageBufferData

function2 overloads
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.

void setUniformData(uint32_t binding, const void *data, uint32_t length) const

No description in the source header.

setUniform

function
template <typename UniformType>
void setUniform(const uint32_t binding, const UniformType &data) const

No description in the source header.

Find your next step

Start typing to search the manual.