love.graphics.validateShader

Available since LÖVE 11.0
This function is not supported in earlier versions.

Validates shader code. Check if specified shader code does not contain any errors.

Function

Synopsis

status, message = love.graphics.validateShader( gles, code )

Arguments

boolean gles
Validate code as GLSL ES shader.
string code
The pixel shader or vertex shader code, or a filename pointing to a file with the code.

Returns

boolean status
true if specified shader code doesn't contain any errors. false otherwise.
string message
Reason why shader code validation failed (or nil if validation succeded).

Function

Synopsis

status, message = love.graphics.validateShader( gles, pixelcode, vertexcode )

Arguments

boolean gles
Validate code as GLSL ES shader.
string pixelcode
The pixel shader code, or a filename pointing to a file with the code.
string vertexcode
The vertex shader code, or a filename pointing to a file with the code.

Returns

boolean status
true if specified shader code doesn't contain any errors. false otherwise.
string message
Reason why shader code validation failed (or nil if validation succeded).

See Also


© 2006–2020 LÖVE Development Team
Licensed under the GNU Free Documentation License, Version 1.3.
https://love2d.org/wiki/love.graphics.validateShader