diff options
Diffstat (limited to 'ext/webgpu/lib.rs')
-rw-r--r-- | ext/webgpu/lib.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ext/webgpu/lib.rs b/ext/webgpu/lib.rs index 834ac6bcc..abb36fb8d 100644 --- a/ext/webgpu/lib.rs +++ b/ext/webgpu/lib.rs @@ -75,7 +75,6 @@ pub mod queue; pub mod render_pass; pub mod sampler; pub mod shader; -#[cfg(feature = "surface")] pub mod surface; pub mod texture; @@ -212,7 +211,12 @@ deno_core::extension!( queue::op_webgpu_write_texture, // shader shader::op_webgpu_create_shader_module, + // surface + surface::op_webgpu_surface_configure, + surface::op_webgpu_surface_get_current_texture, + surface::op_webgpu_surface_present ], + esm = ["00_init.js", "02_surface.js"], lazy_loaded_esm = ["01_webgpu.js"], ); |