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

A program's source pair, tagged with the language it is written in. More...

#include <GfxEnums.hpp>

Public Attributes

GfxShaderLanguage language = GfxShaderLanguage::GLSL_ES300
const char * vertexSrc = nullptr
const char * fragmentSrc = nullptr
bool deferLink = false

Detailed Description

A program's source pair, tagged with the language it is written in.

Definition at line 660 of file GfxEnums.hpp.

Member Data Documentation

◆ deferLink

bool esengine::GfxShaderSource::deferLink = false

Where the backend can (GfxDevice::supportsDeferredLink), create the program without waiting for it to compile and link: the work is queued and the wait is the first thing that needs the program (a draw, a uniform location). Programs asked for one after another then compile side by side instead of one by one. A program that fails to link is only found out then; use it for source that is known to compile.

Definition at line 669 of file GfxEnums.hpp.

Referenced by esengine::GLDevice::backendCreateProgram().

◆ fragmentSrc

const char* esengine::GfxShaderSource::fragmentSrc = nullptr

◆ language

◆ vertexSrc

const char* esengine::GfxShaderSource::vertexSrc = nullptr

The documentation for this struct was generated from the following file:
  • /home/runner/work/estella/estella/src/esengine/renderer/rhi/GfxEnums.hpp