|
Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
|
Backend-agnostic graphics enumerations. More...


Go to the source code of this file.
Classes | |
| struct | esengine::GfxVertexAttribute |
| struct | esengine::VertexLayoutDesc |
| Describes how vertex-buffer bytes map to shader attributes. More... | |
| struct | esengine::GfxBlockInfo |
| Block footprint of a compressed format, the single source both backends use to size each mip level's upload. BC1/ETC2_RGB are 4x4x8B, the RGBA block formats 4x4x16B, ASTC's block matches its name. More... | |
| struct | esengine::BufferDesc |
| Immutable creation parameters of a GPU buffer. More... | |
| struct | esengine::TextureDesc |
| Immutable creation parameters of a 2D texture or 2D texture array. More... | |
| struct | esengine::FramebufferDesc |
| Attachments of an offscreen render target. The attach point of depthStencil follows its texture's pixel format. More... | |
| struct | esengine::RenderPassDesc |
| One render pass: a target, which attachments to clear on entry, and the clear values — full load-op semantics, no sticky device clear state. More... | |
| struct | esengine::GfxDeviceIdentity |
| Everything a human needs to know about one device loss. More... | |
| struct | esengine::GfxDeviceLostInfo |
| struct | esengine::GfxShaderSource |
| A program's source pair, tagged with the language it is written in. More... | |
| struct | esengine::GfxComputeSource |
| A compute program's source. Compute is WGSL only: GLSL ES 3.00 has no compute stage. More... | |
| struct | esengine::GfxComputeBinding |
| One resource a compute dispatch binds, at @group(0) @binding(binding). More... | |
| struct | esengine::GfxAttribBinding |
| Vertex attribute location binding applied before a program is linked. More... | |
| struct | esengine::GfxUniformInfo |
Namespaces | |
| namespace | esengine |
Typedefs | |
| using | esengine::AsyncComputeFence = i32 |
Functions | |
| constexpr bool | esengine::meshShaderReads (MeshChannel c) |
| Whether the mesh shaders READ a channel, as opposed to the file carrying it. | |
| u32 | esengine::gfxBytesPerPixel (GfxPixelFormat fmt) |
| Bytes one pixel occupies in the CALLER's upload buffer — the single source both backends size a read of caller-owned pixels with. A backend's own texel size may differ (RGB8 widens to RGBA8 on WebGPU). Depth formats are attachment-only and never uploaded. | |
| GfxBlockInfo | esengine::gfxCompressedBlockInfo (GfxCompressedFormat fmt) |
| u32 | esengine::gfxWholeBlockLevels (GfxCompressedFormat fmt, u32 width, u32 height, u32 mipLevels) |
How many mip levels of a width x height image are WHOLE blocks, counting from the base — the levels a compressed copy may write, since a copy whose size is not a multiple of the block is refused. 72x72 has two (72, 36; 18 stops it) and 70x70 has none, which is what makes an image uncompressible rather than merely short of mips. | |
| u32 | esengine::gfxCompressedPyramidBytes (GfxCompressedFormat fmt, u32 width, u32 height, u32 mipLevels) |
| Total bytes of a full mip pyramid (levels 0..mipLevels-1) for a base-size compressed texture — the block-aligned sum both the transcoder (packing) and the device (uploading) agree on. | |
| std::string | esengine::gfxFormatDeviceLost (const GfxDeviceLostInfo &info) |
| The whole report as one line, for a log or a crash report. | |
| const char * | esengine::gfxDeviceLostReasonName (GfxDeviceLostReason reason) |
| Human-readable reason, for logs and diagnostics reports. | |
Backend-agnostic graphics enumerations.
Replaces raw GL enum constants in the GfxDevice interface so that upper-layer code has zero dependency on OpenGL headers.
Definition in file GfxEnums.hpp.