Ejemplo n.º 1
0
bool ShaderProgram::attachShaderFromFile(ShaderType type,
                                         const std::string& filename)
{
	std::string source{stringFromFile(filename)};
	return attachShaderFromMemory(type, source);
}
Ejemplo n.º 2
0
b32 ShaderProgram::attachShaderFromFile(ShaderType type,
                                        const String& filename)
{
	const String source = shaderSourceFromFile(filename);
	return attachShaderFromMemory(type, source);
}