Skip to content

Commit

Permalink
Add IsShapeIndep impl for WebGL
Browse files Browse the repository at this point in the history
  • Loading branch information
elftausend committed Sep 24, 2024
1 parent b6d9ed0 commit fcd484e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/devices/webgl/webgl_device.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use std::rc::Rc;
use web_sys::{Element, WebGlFramebuffer, WebGlShader};

use crate::{
webgl::error::WebGlError, wgsl::{WgslDevice, WgslShaderLaunch}, AddLayer, Alloc, Base, Buffer, CloneBuf, Device, Module, OnDropBuffer, OnNewBuffer, Read, RemoveLayer, Retrieve, Retriever, Setup, Shape, Unit, WrappedData, WriteBuf
webgl::error::WebGlError, wgsl::{WgslDevice, WgslShaderLaunch}, AddLayer, Alloc, Base, Buffer, CloneBuf, Device, IsShapeIndep, Module, OnDropBuffer, OnNewBuffer, Read, RemoveLayer, Retrieve, Retriever, Setup, Shape, Unit, WrappedData, WriteBuf
};

use super::{
Expand Down Expand Up @@ -128,6 +128,8 @@ crate::pass_down_replace_buf_dev!(WebGL);
crate::pass_down_cursor!(WebGL);
crate::pass_down_cached_buffers!(WebGL);

unsafe impl<Mods: OnDropBuffer> IsShapeIndep for WebGL<Mods> {}

impl<Mods: OnDropBuffer> Device for WebGL<Mods> {
type Base<T: Unit, S: crate::Shape> = WebGlData<T>;
type Data<T: Unit, S: Shape> = Self::Wrap<T, Self::Base<T, S>>;
Expand Down

0 comments on commit fcd484e

Please sign in to comment.