Foundation
Loading...
Searching...
No Matches
Classes | Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | List of all members
Foundation::RenderCore::Shader Class Reference

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< EntrypointmEntrypoints
 
Vector< BindingmBindings
 
Vector< PushConstantmPushConstants
 

Private Member Functions

void ParseSPIRV (Span< const char > bytecode)
 Parse SPIR-V shader code and populate reflection data.

 
void Sort ()
 

Private Attributes

AllocatormAllocator
 

Detailed Description

Runtime reflection data for a shader module.

Constructor & Destructor Documentation

◆ Shader()

Shader::Shader ( Core::Span< const char bytecode,
Allocator alloc 
)

Member Function Documentation

◆ DbgDumpShaderInfo()

String Shader::DbgDumpShaderInfo ( ) const

◆ ParseSPIRV()

void Shader::ParseSPIRV ( Span< const char bytecode)
private

◆ Sort()

void Shader::Sort ( )
private

Member Data Documentation

◆ mAllocator

Allocator* Foundation::RenderCore::Shader::mAllocator
private

◆ mBindings

Vector<Binding> Foundation::RenderCore::Shader::mBindings

◆ mEntrypoints

Vector<Entrypoint> Foundation::RenderCore::Shader::mEntrypoints

◆ mPushConstants

Vector<PushConstant> Foundation::RenderCore::Shader::mPushConstants

The documentation for this class was generated from the following files: