Add Interpolation attribute for the VertexOutput and add Error trait implementation for RenderError (#49)
* impl trait Error for RenderError * fix shader for usage in web
This commit is contained in:
parent
33c64acbcf
commit
3c9f7c4eb1
2 changed files with 3 additions and 1 deletions
|
@ -40,3 +40,5 @@ impl Display for RenderError {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl Error for RenderError {}
|
||||||
|
|
|
@ -12,7 +12,7 @@ struct VertexOutput {
|
||||||
@invariant @builtin(position) position: vec4<f32>,
|
@invariant @builtin(position) position: vec4<f32>,
|
||||||
@location(0) color: vec4<f32>,
|
@location(0) color: vec4<f32>,
|
||||||
@location(1) uv: vec2<f32>,
|
@location(1) uv: vec2<f32>,
|
||||||
@location(2) content_type: u32,
|
@location(2) @interpolate(flat) content_type: u32,
|
||||||
};
|
};
|
||||||
|
|
||||||
struct Params {
|
struct Params {
|
||||||
|
|
Loading…
Reference in a new issue