Make the ShaderBuilder example easier to parse

This commit is contained in:
2021-08-23 11:18:49 +02:00
parent 6e18e8b327
commit 8d35571fb8

View File

@@ -97,10 +97,14 @@ fn main() {
}
// Basic usage of shader helper
// The code below returns a shader object, which contains the field .program_id
// The snippet is not enough to do the assignment, and will need to be modified (outside of just using the correct path), but it only needs to be called once
// shader::ShaderBuilder::new().attach_file("./path/to/shader").link();
// Basic usage of shader helper:
// The example code below returns a shader object, which contains the field `.program_id`.
// The snippet is not enough to do the assignment, and will need to be modified (outside of
// just using the correct path), but it only needs to be called once
//
// shader::ShaderBuilder::new()
// .attach_file("./path/to/shader.file")
// .link();
unsafe {
}