@@ -17,6 +17,7 @@ impl fmt::Display for ShaderError<crate::front::wgsl::ParseError> {
1717 write ! ( f, "\n Shader '{label}' parsing {string}" )
1818 }
1919}
20+
2021#[ cfg( feature = "glsl-in" ) ]
2122impl fmt:: Display for ShaderError < crate :: front:: glsl:: ParseErrors > {
2223 fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
@@ -25,6 +26,7 @@ impl fmt::Display for ShaderError<crate::front::glsl::ParseErrors> {
2526 write ! ( f, "\n Shader '{label}' parsing {string}" )
2627 }
2728}
29+
2830#[ cfg( feature = "spv-in" ) ]
2931impl fmt:: Display for ShaderError < crate :: front:: spv:: Error > {
3032 fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
@@ -33,6 +35,7 @@ impl fmt::Display for ShaderError<crate::front::spv::Error> {
3335 write ! ( f, "\n Shader '{label}' parsing {string}" )
3436 }
3537}
38+
3639impl fmt:: Display for ShaderError < crate :: WithSpan < crate :: valid:: ValidationError > > {
3740 fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
3841 use codespan_reporting:: { files:: SimpleFile , term} ;
@@ -50,6 +53,7 @@ impl fmt::Display for ShaderError<crate::WithSpan<crate::valid::ValidationError>
5053 )
5154 }
5255}
56+
5357impl < E > Error for ShaderError < E >
5458where
5559 ShaderError < E > : fmt:: Display ,
0 commit comments