Pipeline
What a draw call carries to the render bridge: the matrices and the pixel grid, the render state with its blending and stencil, the vertices, and the JOID GLSL sources with their translation and uniforms. Learn: Render pipeline, Shader translation, Drawing resources and transforms.
Main types
Section titled “Main types”| Type | Kind | Summary |
|---|---|---|
BlendState | class | How a draw combines its colors with the pixels already on the target, an equation and four factors. |
CoreShader | enum | The JOID GLSL shaders of the core, which draw text, shapes, lines and the built-in effects on every backend. |
DepthRange | class | Converts a projection from the OpenGL depth range, -1 to 1, to a clip space whose depth goes from 0 to 1. |
GlslDialect | enum | A GLSL or GLSL ES version that the shader translator writes, with the language features that each version allows. |
GlslShaderTranslator | class | Rewrites the JOID GLSL stages of a shader into the dialect of a backend, with the declarations, uniforms and wrappers that JOID adds around the body. |
ImplicitConversion | class | Rewrites the integer literals of a GLSL body as float literals where a float is expected, for the dialects whose compiler does not convert them. |
MatrixStack | class | A 4×4 transformation matrix with a stack that saves and restores it, as the model-view and the projection of the render bridge. |
PipelineKey | class | The part of the render state that a pipeline object bakes in, as a value that a backend uses as the key of its pipeline cache. |
PixelGrid | class | Maps design pixels onto the screen pixels of the current projection, model-view and viewport, and snaps edges, sizes and motions onto whole pixels. |
Primitive | enum | How the vertices of a draw join, in segments or in triangles. |
RenderState | class | The settings that every draw reads, color, blending, texture, shader, lines, depth, stencil, viewport and target. |
ShaderBuiltin | enum | The names that a JOID GLSL source uses without declaring them, the vertex attributes, the matrices and the lighting that JOID provides, and the fragment output. |
ShaderFeature | enum | A GLSL feature that only some dialects accept, with the first desktop and ES versions that have it and the pattern that finds it in a source. |
ShaderSource | class | One stage of a shader written in JOID GLSL, parsed so that every backend can translate it. |
ShaderStage | enum | The two programmable stages of a JOID shader. |
ShaderTranslation | class | The translated sources of a shader, ready for the graphics API, the vertex and fragment stages and the optional stencil write stage. |
ShaderVariable | class | A variable that a shader source declares, an input, an output, a uniform or a sampler, as the translator reads and writes it again. |
StencilEmulation | class | Stencil test and update done in the fragment shader, for a backend whose targets have no stencil buffer. |
StencilFunction | enum | The comparison of a stencil test between the masked reference and the masked stored value. |
StencilOperation | enum | What a draw does to the stored stencil value after the stencil and depth tests. |
StencilState | class | The immutable stencil settings of the render state, comparison, reference, mask and the three operations. |
UniformBlock | class | Holds every uniform value of a shader at its std140 offset, tracks which ones changed, and packs or hands them to the backend before a draw. |
UniformLayout | enum | How a translated program declares its uniforms, in one std140 block or one by one. |
UniformMember | class | One uniform of a block, its std140 place, its current value as raw 32-bit words, and whether it changed since the backend last sent it. |
UniformSampler | class | One sampler of a shader, its texture unit and the texture, filter and wrap bound to it. |
UniformType | enum | The GLSL types that a uniform can have, with the component and column counts that set its std140 size and the values that it accepts. |
VertexAttribute | enum | The attributes of a JOID vertex, each with its shader input, its location, its byte offset and its format. |
VertexBuffer | class | The vertices of one draw, in the fixed 32-byte layout that every backend reads. |
VertexComponent | enum | The numeric type of the components of a vertex attribute. |
VertexFill | class | Copies a vertex buffer into memory of the backend and writes neutral values where the draw left optional attributes out. |
Supporting types
Section titled “Supporting types”Nested types and listeners that the main types use.
| Type | Kind | Summary |
|---|---|---|
BlendState.Equation | enum | The operation that combines the weighted source and destination colors of a blend state. |
BlendState.Factor | enum | A weight that a blend state applies to the source or the destination color before its equation. |
PixelGrid.Span | class | The snapped edges of a shape along one axis, with the coverage that fades a span thinner than a pixel. |
ShaderBuiltin.Kind | enum | How the translator declares a built-in name, as a vertex attribute, a uniform or the fragment output. |
StencilEmulation.Pass | enum | Which stencil code a translated fragment stage carries. |
