ShaderBuiltin.Kind
enum ShaderBuiltin.Kind
Package: dev.joid.lib.bridge.render.shader.source · Module: core · Source: ShaderBuiltin.java
How the translator declares a built-in name, as a vertex attribute, a uniform or the fragment output.
Description
Section titled “Description”GlslShaderTranslator reads the kind of each ShaderBuiltin to decide where it goes in the translated source.
Learn more
Section titled “Learn more”Values
Section titled “Values”| Value | Summary |
|---|---|
ATTRIBUTE | An input of the vertex stage, one value per vertex, declared at the location of its VertexAttribute. |
UNIFORM | A value that stays the same for a whole draw, declared with the other uniforms of the program. |
OUTPUT | The color output of the fragment stage. |
Value details
Section titled “Value details”ATTRIBUTE
Section titled “ATTRIBUTE”ATTRIBUTE
An input of the vertex stage, one value per vertex, declared at the location of its VertexAttribute.
UNIFORM
Section titled “UNIFORM”UNIFORM
A value that stays the same for a whole draw, declared with the other uniforms of the program.
OUTPUT
Section titled “OUTPUT”OUTPUT
The color output of the fragment stage.
fluent returns the instance, typed for chaining · factory creates an instance · signal also accepts a value that follows signals, as a signal, an expression or a lambda (When does JOID compute this value again?) · hook called by JOID, override it · abstract you implement it · default interface method with a body · static called on the class · protected visible to subclasses
