Added conditional configurations for WASM target for gradients & storage buffers, since storage buffers are not supported on wgpu WASM target at the moment.
This commit is contained in:
parent
23299a555f
commit
365f37a3ae
5 changed files with 27 additions and 3 deletions
|
|
@ -141,6 +141,7 @@ impl Pipeline {
|
|||
triangle::Style::Solid(color) => {
|
||||
self.programs.solid.use_program(gl, color, &transform);
|
||||
}
|
||||
#[cfg(not(target_arch = "wasm32"))]
|
||||
triangle::Style::Gradient(gradient) => {
|
||||
self.programs
|
||||
.gradient
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue