File tree 1 file changed +4
-0
lines changed 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -113,6 +113,7 @@ pub struct ShaderError<E> {
113
113
pub label : Option < String > ,
114
114
pub inner : Box < E > ,
115
115
}
116
+
116
117
#[ cfg( feature = "wgsl" ) ]
117
118
impl fmt:: Display for ShaderError < naga:: front:: wgsl:: ParseError > {
118
119
fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
@@ -121,6 +122,7 @@ impl fmt::Display for ShaderError<naga::front::wgsl::ParseError> {
121
122
write ! ( f, "\n Shader '{label}' parsing {string}" )
122
123
}
123
124
}
125
+
124
126
#[ cfg( feature = "glsl" ) ]
125
127
impl fmt:: Display for ShaderError < naga:: front:: glsl:: ParseError > {
126
128
fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
@@ -137,6 +139,7 @@ impl fmt::Display for ShaderError<naga::front::spv::Error> {
137
139
write ! ( f, "\n Shader '{label}' parsing {string}" )
138
140
}
139
141
}
142
+
140
143
impl fmt:: Display for ShaderError < naga:: WithSpan < naga:: valid:: ValidationError > > {
141
144
fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
142
145
use codespan_reporting:: {
@@ -168,6 +171,7 @@ impl fmt::Display for ShaderError<naga::WithSpan<naga::valid::ValidationError>>
168
171
)
169
172
}
170
173
}
174
+
171
175
impl < E > Error for ShaderError < E >
172
176
where
173
177
ShaderError < E > : fmt:: Display ,
You can’t perform that action at this time.
0 commit comments