react-native-wgpu 0.1.16 → 0.1.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -17,6 +17,7 @@ public class WebGPUTextureView extends TextureView implements TextureView.Surfac
17
17
  public WebGPUTextureView(Context context, WebGPUAPI api) {
18
18
  super(context);
19
19
  mApi = api;
20
+ setOpaque(false);
20
21
  setSurfaceTextureListener(this);
21
22
  }
22
23
 
@@ -22,7 +22,11 @@ struct Size {
22
22
  class SurfaceInfo {
23
23
  public:
24
24
  SurfaceInfo(wgpu::Instance gpu, int width, int height)
25
- : gpu(gpu), width(width), height(height) {}
25
+ : gpu(std::move(gpu)), width(width), height(height) {}
26
+
27
+ ~SurfaceInfo() {
28
+ surface = nullptr;
29
+ }
26
30
 
27
31
  void reconfigure(int newWidth, int newHeight) {
28
32
  std::unique_lock<std::shared_mutex> lock(_mutex);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-wgpu",
3
- "version": "0.1.16",
3
+ "version": "0.1.17",
4
4
  "description": "React Native WebGPU",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",