Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
Loading...
Searching...
No Matches
esengine::DrawParamsLayout Struct Reference

A shader's DrawParams layout: lifted members + 16-aligned block size. More...

#include <DrawParams.hpp>

Public Member Functions

bool empty () const
const DrawParamSlot * find (const std::string &name) const

Public Attributes

std::vector< DrawParamSlot > slots
u32 blockSize = 0
 0 ⇒ the shader has no DrawParams block.

Detailed Description

A shader's DrawParams layout: lifted members + 16-aligned block size.

Definition at line 63 of file DrawParams.hpp.

Member Function Documentation

◆ empty()

bool esengine::DrawParamsLayout::empty ( ) const
inline

Definition at line 67 of file DrawParams.hpp.

References blockSize.

Referenced by esengine::resource::ResourceManager::createShader().

◆ find()

const DrawParamSlot * esengine::DrawParamsLayout::find ( const std::string & name) const

Definition at line 14 of file DrawParams.cpp.

References slots.

Member Data Documentation

◆ blockSize

u32 esengine::DrawParamsLayout::blockSize = 0

0 ⇒ the shader has no DrawParams block.

Definition at line 65 of file DrawParams.hpp.

Referenced by empty(), and esengine::rewriteLooseUniforms().

◆ slots

std::vector<DrawParamSlot> esengine::DrawParamsLayout::slots

Definition at line 64 of file DrawParams.hpp.

Referenced by find(), and esengine::rewriteLooseUniforms().


The documentation for this struct was generated from the following files:
  • /home/runner/work/estella/estella/src/esengine/renderer/draw/DrawParams.hpp
  • /home/runner/work/estella/estella/src/esengine/renderer/draw/DrawParams.cpp