CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
ReflectionPrinter.hpp
Go to the documentation of this file.
1//
2// CeresEngine - A game development framework
3//
4// Created by Rogiel Sulzbach.
5// Copyright (c) 2018-2022 Rogiel Sulzbach. All rights reserved.
6//
7
8#pragma once
9
11
13
14#include <ostream>
15
17
19 public:
20 ReflectionPrinter(std::ostream& output);
21
23
24 private:
25 std::ostream& indentOut();
26
27 void printReflectionObjects(const Vector<String>& idents, const char* title);
34 void printReflectionObjects(const Vector<Reflection::StaticSamplerState>& samplerStates, const char* title);
35 void printReflectionAttribute(const Reflection::NumThreads& numThreads, const char* title);
36
37 std::ostream& mOutput;
39 };
40
41} // namespace CeresEngine::ShaderCompiler
Indentation handler base class.
Definition CodeWriter.hpp:23
Definition ReflectionPrinter.hpp:18
void printReflectionAttribute(const Reflection::NumThreads &numThreads, const char *title)
void printReflectionObjects(const Vector< Reflection::Resource > &objects, const char *title, bool referencedOnly)
void printReflectionObjects(const Vector< String > &idents, const char *title)
void printReflectionObjects(const Vector< Reflection::SamplerState > &objects, const char *title, bool referencedOnly)
IndentHandler mIndentHandler
Definition ReflectionPrinter.hpp:38
void printReflectionObjects(const Vector< Reflection::Record > &objects, const char *title, bool referencedOnly)
void printReflectionObjects(const Vector< Reflection::StaticSamplerState > &samplerStates, const char *title)
void printReflectionObjects(const Vector< Reflection::Attribute > &objects, const char *title, bool referencedOnly)
void printReflectionObjects(const Vector< Reflection::ConstantBuffer > &objects, const char *title, bool referencedOnly)
void printFields(const Vector< Reflection::Field > &objects, bool referencedOnly)
void printReflection(const Reflection::ReflectionData &reflectionData, bool referencedOnly=false)
std::ostream & mOutput
Definition ReflectionPrinter.hpp:37
Definition AST.hpp:33
std::vector< T, ScopedAllocatorAdaptor< StdAllocator< T, RawAllocator > > > Vector
Vector is a sequence container that encapsulates dynamic size arrays.
Definition Vector.hpp:17
constexpr size_t hash(const T &v)
Generates a hash for the provided type.
Definition Hash.hpp:25
Number of threads within each work group of a compute shader.
Definition Reflection.hpp:406
Structure for shader output statistics (e.g. texture/buffer binding points).
Definition Reflection.hpp:418