Shader.fromFile

Binds the source code to the shader directly from the specified file.

class Shader(int type)
@trusted
static if(isShaderUnite!type)
Shader!type
fromFile
(
string path
)

Parameters

path string

The path to the shader source code.

Throws

Exception if the file is not found.

Meta