core::ivk::shader class

creates a shader object from a SPIR-V module

handles loading a SPIR-V object from a source (disk, or otherwise). and subsequently uploads it to the driver to be validated. a couple of shaders together with a core::ivk::pipeline and core::ivk::geometry_t is all that's needed to render an object on screen.

types

classes

specialization
contains the specialization info that might be used by the shader.

member-functions

pipeline
public
meta
const public noexcept

Function documentation

std::optional<vk::PipelineShaderStageCreateInfo> core::ivk::shader::pipeline(const specialization& description = specialization {})

Details

Returns the pipeline shader stage create info for the given specialization.

core::meta::shader* core::ivk::shader::meta() const noexcept

Returns the meta data that describes this shader and its binding points.