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 @@ -100,6 +100,7 @@ pub struct ShaderError<E> {
100
100
pub label : Option < String > ,
101
101
pub inner : Box < E > ,
102
102
}
103
+
103
104
#[ cfg( feature = "wgsl" ) ]
104
105
impl fmt:: Display for ShaderError < naga:: front:: wgsl:: ParseError > {
105
106
fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
@@ -108,6 +109,7 @@ impl fmt::Display for ShaderError<naga::front::wgsl::ParseError> {
108
109
write ! ( f, "\n Shader '{label}' parsing {string}" )
109
110
}
110
111
}
112
+
111
113
#[ cfg( feature = "glsl" ) ]
112
114
impl fmt:: Display for ShaderError < naga:: front:: glsl:: ParseError > {
113
115
fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
@@ -124,6 +126,7 @@ impl fmt::Display for ShaderError<naga::front::spv::Error> {
124
126
write ! ( f, "\n Shader '{label}' parsing {string}" )
125
127
}
126
128
}
129
+
127
130
impl fmt:: Display for ShaderError < naga:: WithSpan < naga:: valid:: ValidationError > > {
128
131
fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
129
132
use codespan_reporting:: {
@@ -155,6 +158,7 @@ impl fmt::Display for ShaderError<naga::WithSpan<naga::valid::ValidationError>>
155
158
)
156
159
}
157
160
}
161
+
158
162
impl < E > Error for ShaderError < E >
159
163
where
160
164
ShaderError < E > : fmt:: Display ,
You can’t perform that action at this time.
0 commit comments