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

#include <GfxResourceRegistry.hpp>

Public Attributes

GfxShaderLanguage language = GfxShaderLanguage::GLSL_ES300
std::string vertex
std::string fragment
std::vector< std::pair< u32, std::string > > attribBindings
std::vector< std::string > uniformNames
 A location handed out is an index here; the backend's own is resolved per generation.
std::vector< GfxUniformValue > uniformValues
std::vector< std::string > blockNames
std::vector< u32 > blockBindings
 Binding point per block name, or GFX_UNBOUND_BLOCK.
bool realized = false
std::function< void()> onLinked
 What the owner of a program created with GfxShaderSource::deferLink does once it has linked (the block bindings, the pinned samplers). Run once.

Detailed Description

Definition at line 70 of file GfxResourceRegistry.hpp.

Member Data Documentation

◆ attribBindings

std::vector<std::pair<u32, std::string> > esengine::GfxProgramRecord::attribBindings

Definition at line 74 of file GfxResourceRegistry.hpp.

Referenced by esengine::GfxDevice::createProgram().

◆ blockBindings

std::vector<u32> esengine::GfxProgramRecord::blockBindings

Binding point per block name, or GFX_UNBOUND_BLOCK.

Definition at line 80 of file GfxResourceRegistry.hpp.

Referenced by esengine::GfxDevice::getUniformBlockIndex(), and esengine::GfxDevice::uniformBlockBinding().

◆ blockNames

std::vector<std::string> esengine::GfxProgramRecord::blockNames

◆ fragment

std::string esengine::GfxProgramRecord::fragment

Definition at line 73 of file GfxResourceRegistry.hpp.

Referenced by esengine::GfxDevice::createProgram().

◆ language

GfxShaderLanguage esengine::GfxProgramRecord::language = GfxShaderLanguage::GLSL_ES300

Definition at line 71 of file GfxResourceRegistry.hpp.

Referenced by esengine::GfxDevice::createProgram().

◆ onLinked

std::function<void()> esengine::GfxProgramRecord::onLinked

What the owner of a program created with GfxShaderSource::deferLink does once it has linked (the block bindings, the pinned samplers). Run once.

Definition at line 83 of file GfxResourceRegistry.hpp.

◆ realized

◆ uniformNames

std::vector<std::string> esengine::GfxProgramRecord::uniformNames

A location handed out is an index here; the backend's own is resolved per generation.

Definition at line 76 of file GfxResourceRegistry.hpp.

Referenced by esengine::GfxDevice::getActiveUniforms(), and esengine::GfxDevice::getUniformLocation().

◆ uniformValues

std::vector<GfxUniformValue> esengine::GfxProgramRecord::uniformValues

Definition at line 77 of file GfxResourceRegistry.hpp.

Referenced by esengine::GfxDevice::getUniformLocation().

◆ vertex

std::string esengine::GfxProgramRecord::vertex

Definition at line 72 of file GfxResourceRegistry.hpp.

Referenced by esengine::GfxDevice::createProgram().


The documentation for this struct was generated from the following file: