File tree 1 file changed +3
-0
lines changed
1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -95,6 +95,7 @@ pub struct ShaderError<E> {
95
95
pub label : Option < String > ,
96
96
pub inner : Box < E > ,
97
97
}
98
+
98
99
#[ cfg( feature = "wgsl" ) ]
99
100
impl fmt:: Display for ShaderError < naga:: front:: wgsl:: ParseError > {
100
101
fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
@@ -103,6 +104,7 @@ impl fmt::Display for ShaderError<naga::front::wgsl::ParseError> {
103
104
write ! ( f, "\n Shader '{label}' parsing {string}" )
104
105
}
105
106
}
107
+
106
108
impl fmt:: Display for ShaderError < naga:: WithSpan < naga:: valid:: ValidationError > > {
107
109
fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
108
110
use codespan_reporting:: {
@@ -134,6 +136,7 @@ impl fmt::Display for ShaderError<naga::WithSpan<naga::valid::ValidationError>>
134
136
)
135
137
}
136
138
}
139
+
137
140
impl < E > Error for ShaderError < E >
138
141
where
139
142
ShaderError < E > : fmt:: Display ,
You can’t perform that action at this time.
0 commit comments