|
Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
|

Go to the source code of this file.
Namespaces | |
| namespace | esengine |
Functions | |
| bool | esengine::postprocess_init (u32 width, u32 height) |
| void | esengine::postprocess_shutdown () |
| void | esengine::postprocess_resize (u32 width, u32 height) |
| u32 | esengine::postprocess_addPass (const std::string &name, u32 shaderHandle) |
| u32 | esengine::postprocess_addComputePass (const std::string &name, const std::string &wgsl, const std::string ¶ms, u32 workgroupX, u32 workgroupY) |
| Adds a pass that is a WGSL compute shader over the picture (see PostProcessPipeline::addComputePass). | |
| bool | esengine::postprocess_supportsCompute () |
| Whether compute passes run on this device: WebGPU yes, WebGL2 no. | |
| u32 | esengine::postprocess_addNativePass (const std::string &name, const std::string &kind) |
| Adds a pass the engine implements itself ("voxelGI"); its parameters are set by name like any pass's. | |
| bool | esengine::postprocess_setGIScene (uintptr_t headerPtr, u32 headerCount, uintptr_t sdfPtr, u32 sdfCount, uintptr_t instancesPtr, u32 instanceCount, uintptr_t pixelsPtr, u32 pixelCount) |
| Hands the dynamic GI the scene it traces: the header, the distance field, the instances and the card pixels, laid out as sdk/src/gi/gpuScene.ts writes them (see DynamicGI.hpp). The engine copies them; the pointers are free after the call. | |
| bool | esengine::postprocess_updateGIField (uintptr_t headerPtr, u32 headerCount, uintptr_t sdfPtr, u32 sdfOffset, u32 sdfCount) |
Updates the scene the dynamic GI traces after the camera moved: the header, and sdfCount floats of the field from float sdfOffset on. | |
| void | esengine::postprocess_setMsaaSamples (u32 samples) |
| u32 | esengine::postprocess_effectiveMsaaSamples () |
| u32 | esengine::postprocess_maxMsaaSamples () |
| i32 | esengine::postprocess_hdrFormat (uintptr_t outPtr) |
The format decision the last frame COMMITTED to, into four floats at outPtr: requested, effective, refusal, linear. | |
| std::string | esengine::postprocess_hdrFormatNames () |
| The last committed decision as words: "requested|effective|reason". Empty before a frame has committed one. The names come from the engine so no reader has to hold a second spelling of the format enum's order. | |
| void | esengine::postprocess_setPassScale (const std::string &passName, f32 scale) |
| void | esengine::postprocess_setPassContinuesEffect (const std::string &passName) |
| void | esengine::postprocess_requestSkyCapture (const std::string &passName, u32 width, u32 height) |
| i32 | esengine::postprocess_pollSkyCapture () |
| bool | esengine::postprocess_takeSkyCapture (uintptr_t dst, u32 bytes) |
| u32 | esengine::postprocess_giStats (uintptr_t dst, u32 capacity) |
| void | esengine::postprocess_setUniformFloat (const std::string &passName, const std::string &uniform, f32 value) |
| void | esengine::postprocess_setPassTexture (const std::string &passName, const std::string &uniform, u32 textureHandle) |
| void | esengine::postprocess_setUniformVec4 (const std::string &passName, const std::string &uniform, f32 x, f32 y, f32 z, f32 w) |
| void | esengine::postprocess_begin () |
| void | esengine::postprocess_end () |
| bool | esengine::postprocess_isInitialized () |
| void | esengine::postprocess_setBypass (bool bypass) |
| void | esengine::postprocess_setOutputTransform (u32 transform) |
| void | esengine::postprocess_setDisplayLut (u32 textureHandle, f32 amount) |
| void | esengine::postprocess_setViewExposure (f32 ev) |
| void | esengine::postprocess_clearPasses () |
| void | esengine::postprocess_setOutputViewport (u32 x, u32 y, u32 w, u32 h) |
| void | esengine::postprocess_setPresentRequired (bool required) |
| void | esengine::postprocess_beginScreenCapture () |
| void | esengine::postprocess_endScreenCapture () |
| void | esengine::postprocess_executeScreenPasses () |
| u32 | esengine::postprocess_addScreenPass (const std::string &name, u32 shaderHandle) |
| void | esengine::postprocess_clearScreenPasses () |
| void | esengine::postprocess_setScreenUniformFloat (const std::string &passName, const std::string &uniform, f32 value) |
| void | esengine::postprocess_setScreenUniformVec4 (const std::string &passName, const std::string &uniform, f32 x, f32 y, f32 z, f32 w) |