|
Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
|
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 |
A program's source pair, tagged with the language it is written in.
Definition at line 660 of file GfxEnums.hpp.
| 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().
| const char* esengine::GfxShaderSource::fragmentSrc = nullptr |
Definition at line 663 of file GfxEnums.hpp.
Referenced by esengine::GLDevice::backendCreateProgram(), esengine::WebGPUDevice::backendCreateProgram(), and esengine::GfxDevice::createProgram().
| GfxShaderLanguage esengine::GfxShaderSource::language = GfxShaderLanguage::GLSL_ES300 |
Definition at line 661 of file GfxEnums.hpp.
Referenced by esengine::GLDevice::backendCreateProgram(), esengine::WebGPUDevice::backendCreateProgram(), and esengine::GfxDevice::createProgram().
| const char* esengine::GfxShaderSource::vertexSrc = nullptr |
Definition at line 662 of file GfxEnums.hpp.
Referenced by esengine::GLDevice::backendCreateProgram(), esengine::WebGPUDevice::backendCreateProgram(), and esengine::GfxDevice::createProgram().