wren
Vulkan-based game engine
Loading...
Searching...
No Matches
wren::reflect::Reflect Class Reference

#include <reflect.hpp>

Public Member Functions

 Reflect ()=default
 Reflect (const std::span< const std::byte > &spirv)
auto magic_number () const
auto entry_points () const
auto input_variables () const -> std::vector< Variable >
auto input_variables_for_entry_point (spv::ExecutionModel entry_point_type) const -> std::vector< Variable >
auto descriptor_sets () const -> std::vector< DescriptorSet >

Private Member Functions

void resolve ()
auto parse_op_code (utils::BinaryReader &reader, uint32_t wordcount, const spv::Op &opcode) -> uint32_t

Private Attributes

uint32_t magic_number_ {}
uint32_t version_ {}
uint32_t generator_ {}
uint32_t bound_ {}
std::vector< EntryPointentry_points_
std::map< uint32_t, Variablevariables_
std::map< uint32_t, DescriptorSetdescriptor_sets_
std::map< uint32_t, std::vector< Annotation > > annotations_
std::map< uint32_t, SimpleTypetypes_
std::map< uint32_t, std::string > names_

Constructor & Destructor Documentation

◆ Reflect() [1/2]

wren::reflect::Reflect::Reflect ( )
default

◆ Reflect() [2/2]

wren::reflect::Reflect::Reflect ( const std::span< const std::byte > & spirv)
Here is the call graph for this function:

Member Function Documentation

◆ descriptor_sets()

auto wren::reflect::Reflect::descriptor_sets ( ) const -> std::vector<DescriptorSet>
inlinenodiscard

◆ entry_points()

auto wren::reflect::Reflect::entry_points ( ) const
inlinenodiscard

◆ input_variables()

auto wren::reflect::Reflect::input_variables ( ) const -> std::vector<Variable>
inlinenodiscard

◆ input_variables_for_entry_point()

auto wren::reflect::Reflect::input_variables_for_entry_point ( spv::ExecutionModel entry_point_type) const -> std::vector<Variable>
inlinenodiscard

◆ magic_number()

auto wren::reflect::Reflect::magic_number ( ) const
inlinenodiscard

◆ parse_op_code()

auto wren::reflect::Reflect::parse_op_code ( utils::BinaryReader & reader,
uint32_t wordcount,
const spv::Op & opcode ) -> uint32_t
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ resolve()

void wren::reflect::Reflect::resolve ( )
private
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ annotations_

std::map<uint32_t, std::vector<Annotation> > wren::reflect::Reflect::annotations_
private

◆ bound_

uint32_t wren::reflect::Reflect::bound_ {}
private

◆ descriptor_sets_

std::map<uint32_t, DescriptorSet> wren::reflect::Reflect::descriptor_sets_
private

◆ entry_points_

std::vector<EntryPoint> wren::reflect::Reflect::entry_points_
private

◆ generator_

uint32_t wren::reflect::Reflect::generator_ {}
private

◆ magic_number_

uint32_t wren::reflect::Reflect::magic_number_ {}
private

◆ names_

std::map<uint32_t, std::string> wren::reflect::Reflect::names_
private

◆ types_

std::map<uint32_t, SimpleType> wren::reflect::Reflect::types_
private

◆ variables_

std::map<uint32_t, Variable> wren::reflect::Reflect::variables_
private

◆ version_

uint32_t wren::reflect::Reflect::version_ {}
private

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