Shader

Edit

Shaders are small GPU programs. See the Shaders guide for a full introduction to Shaders.

Constructors

lovr.graphics.newShaderCreate a new Shader.
Shader:cloneClone a Shader.

Methods

Shader:cloneClone a Shader.
Shader:getBufferFormatGet the format of a buffer in the Shader.
Shader:getTypeGet the type of the Shader.
Shader:getWorkgroupSizeGet the workgroup size of a compute shader.
Shader:hasAttributeCheck if the Shader has a given vertex attribute.
Shader:hasStageCheck if the Shader has a given stage.

See also