Make the ShaderBuilder example easier to parse
This commit is contained in:
12
src/main.rs
12
src/main.rs
@@ -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 {
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user