|
CeresEngine 0.2.0
A game development framework
|
Uniform packer is not a visitor in the conventional sense. More...
#include <CeresEngine/Material/ShaderCompiler/AST/Visitor/UniformPacker.hpp>
Classes | |
| struct | CbufferAttributes |
Public Member Functions | |
| void | convert (Program &program, const CbufferAttributes &cbufferAttribs={}, bool onlyReachableStatements=true) |
Private Member Functions | |
| void | makeUniformBuffer () |
| void | appendUniform (const VarDeclarationStatementPtr &varDeclarationStatement) |
| bool | canConvertUniformWithTypeDenoter (const TypeDenoter &typeDen) const |
Private Attributes | |
| CbufferAttributes | mCbufferAttribs |
| UniformBufferDeclarationPtr | mUniformBufferDeclaration |
| BasicDeclarationStatementPtr | mDeclarationStatement |
Uniform packer is not a visitor in the conventional sense.
It only itertates over all global statements and moves all uniform declarations into a single uniform buffer.
|
private |
|
private |
| void CeresEngine::ShaderCompiler::UniformPacker::convert | ( | Program & | program, |
| const CbufferAttributes & | cbufferAttribs = {}, |
||
| bool | onlyReachableStatements = true |
||
| ) |
|
private |
|
private |
|
private |
|
private |