From 8d35571fb82da645a29ff9d236ed72196e5bb870 Mon Sep 17 00:00:00 2001 From: Peder Bergebakken Sundt Date: Mon, 23 Aug 2021 11:18:49 +0200 Subject: [PATCH] Make the ShaderBuilder example easier to parse --- src/main.rs | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/main.rs b/src/main.rs index 59c940a..056d643 100644 --- a/src/main.rs +++ b/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 { }