class final
shadercontains extensions for meta data when loading shader files.
shaders need various metadata that can describe the binding points and types of resources a SPIR-V might be expecting, as well as the pipeline stage it is assigned to. This extension to psl::
base classes
static variables
member-functions
Function documentation
core:: gfx:: shader_stage core:: meta:: shader:: stage() const noexcept
Returns | the shader stage of this SPIR-V module (i.e. vertex, fragment, compute, etc..) |
---|
void core:: meta:: shader:: stage(core:: gfx:: shader_stage value) noexcept
Brief
sets the stage of this SPIR-V module to the given value.
Details
Parameters | |
---|---|
value in | the stage to expect. |
template<typename S>
void core:: meta:: shader:: serialize(S& s) private
Brief
method that will be invoked by the serialization system.
Template parameters | |
---|---|
S | the type of the serializer/deserializer |
Parameters | |
s in | instance of a serializer that you can read from, or write to. |