@@ -17,6 +17,7 @@ impl fmt::Display for ShaderError<crate::front::wgsl::ParseError> {
17
17
write ! ( f, "\n Shader '{label}' parsing {string}" )
18
18
}
19
19
}
20
+
20
21
#[ cfg( feature = "glsl-in" ) ]
21
22
impl fmt:: Display for ShaderError < crate :: front:: glsl:: ParseErrors > {
22
23
fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
@@ -25,6 +26,7 @@ impl fmt::Display for ShaderError<crate::front::glsl::ParseErrors> {
25
26
write ! ( f, "\n Shader '{label}' parsing {string}" )
26
27
}
27
28
}
29
+
28
30
#[ cfg( feature = "spv-in" ) ]
29
31
impl fmt:: Display for ShaderError < crate :: front:: spv:: Error > {
30
32
fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
@@ -33,6 +35,7 @@ impl fmt::Display for ShaderError<crate::front::spv::Error> {
33
35
write ! ( f, "\n Shader '{label}' parsing {string}" )
34
36
}
35
37
}
38
+
36
39
impl fmt:: Display for ShaderError < crate :: WithSpan < crate :: valid:: ValidationError > > {
37
40
fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
38
41
use codespan_reporting:: { files:: SimpleFile , term} ;
@@ -50,6 +53,7 @@ impl fmt::Display for ShaderError<crate::WithSpan<crate::valid::ValidationError>
50
53
)
51
54
}
52
55
}
56
+
53
57
impl < E > Error for ShaderError < E >
54
58
where
55
59
ShaderError < E > : fmt:: Display ,
0 commit comments