We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4052fe4 + 6bae0eb commit 582b0acCopy full SHA for 582b0ac
webrender/src/device.rs
@@ -183,6 +183,11 @@ pub fn build_shader_strings(
183
vs_source.push_str(gl_version_string);
184
fs_source.push_str(gl_version_string);
185
186
+ // Insert the shader name to make debugging easier.
187
+ let name_string = format!("// {}\n", base_filename);
188
+ vs_source.push_str(&name_string);
189
+ fs_source.push_str(&name_string);
190
+
191
// Define a constant depending on whether we are compiling VS or FS.
192
vs_source.push_str(SHADER_KIND_VERTEX);
193
fs_source.push_str(SHADER_KIND_FRAGMENT);
0 commit comments