Toast Engine
Loading...
Searching...
No Matches
shader_reflection.cpp File Reference
#include "shader_reflection.hpp"
#include <algorithm>
#include <slang-com-ptr.h>
#include <toast/log.hpp>
#include <tracy/Tracy.hpp>
Include dependency graph for shader_reflection.cpp:

Functions

void renderer::extractModuleEntryPoints (slang::IModule *module, ShaderReflection &reflection)
 Must come from the IModule since ProgramLayout reports 0 entry points for a module only composite.
auto renderer::extractReflection (slang::ProgramLayout *layout) -> ShaderReflection
auto renderer::toString (ShaderMemberType type) -> std::string_view
auto renderer::toString (ShaderBindingKind kind) -> std::string_view
auto renderer::memberTypeFromString (std::string_view str) -> ShaderMemberType
auto renderer::bindingKindFromString (std::string_view str) -> ShaderBindingKind

Detailed Description

Author
Xein
Date
17/07/2026

Function Documentation

◆ toString()

auto renderer::toString ( ShaderBindingKind kind) -> std::string_view
Warning
Every ShaderBindingKind must appear here and in bindingKindFromString()