Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
Loading...
Searching...
No Matches
DrawParams.cpp File Reference

Loose-uniform → std140 DrawParams block rewriter. More...

#include "./DrawParams.hpp"
#include <cctype>
Include dependency graph for DrawParams.cpp:

Go to the source code of this file.

Namespaces

namespace  esengine

Functions

void esengine::drawParamSizeAlign (DrawParamType t, u32 &size, u32 &align)
 std140 size/base-alignment of a supported param type.
DrawParamsRewrite esengine::rewriteLooseUniforms (const std::string &vertexSrc, const std::string &fragmentSrc)
 Lifts loose non-sampler uniform declarations out of both stages into one shared std140 DrawParams block.

Detailed Description

Loose-uniform → std140 DrawParams block rewriter.

Definition in file DrawParams.cpp.