Shader:getType

Returns the type of the Shader, which will be "graphics" or "compute".

Graphics shaders are created with lovr.graphics.newShader and can be used for rendering with lovr.graphics.setShader. Compute shaders are created with lovr.graphics.newComputeShader and can be run using lovr.graphics.compute.

type = Shader:getType()

Arguments

None

Returns

NameTypeDescription
typeShaderTypeThe type of the Shader.

See also