|
Foundation
|
Runtime reflection data for a shader module. More...
#include <Shader.hpp>
Classes | |
| struct | Binding |
| struct | Entrypoint |
| struct | PushConstant |
Public Member Functions | |
| Shader (Span< const char > bytecode, Allocator *alloc) | |
| String | DbgDumpShaderInfo () const |
Public Attributes | |
| Vector< Entrypoint > | mEntrypoints |
| Vector< Binding > | mBindings |
| Vector< PushConstant > | mPushConstants |
Private Member Functions | |
| void | ParseSPIRV (Span< const char > bytecode) |
| Parse SPIR-V shader code and populate reflection data. | |
| void | Sort () |
Private Attributes | |
| Allocator * | mAllocator |
Runtime reflection data for a shader module.
| Shader::Shader | ( | Core::Span< const char > | bytecode, |
| Allocator * | alloc | ||
| ) |
| String Shader::DbgDumpShaderInfo | ( | ) | const |
Parse SPIR-V shader code and populate reflection data.
See also: https://github.com/zeux/niagara/blob/master/src/shaders.cpp https://registry.khronos.org/SPIR-V/specs/1.0/SPIRV.pdf https://www.khronos.org/spirv/visualizer/ https://shader-slang.org/slang-playground/
|
private |
|
private |
| Vector<Entrypoint> Foundation::RenderCore::Shader::mEntrypoints |
| Vector<PushConstant> Foundation::RenderCore::Shader::mPushConstants |