Skip to content

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.

GlslShaderTranslator reads the kind of each ShaderBuiltin to decide where it goes in the translated source.

ValueSummary
ATTRIBUTEAn input of the vertex stage, one value per vertex, declared at the location of its VertexAttribute.
UNIFORMA value that stays the same for a whole draw, declared with the other uniforms of the program.
OUTPUTThe color output of the fragment stage.

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.


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

Report a problem with this page