[WebGPU] Begin implementation of WebGPURenderPassEncoder and barebones WebGPURenderPa...
[WebKit-https.git] / Source / WebCore / Modules / webgpu / WebGPUTextureView.h
index b315fa4..fbeb8bc 100644 (file)
@@ -37,10 +37,11 @@ class WebGPUTextureView : public RefCounted<WebGPUTextureView> {
 public:
     static Ref<WebGPUTextureView> create(Ref<GPUTexture>&&);
 
+    Ref<GPUTexture> texture() { return m_texture.copyRef(); }
 private:
     explicit WebGPUTextureView(Ref<GPUTexture>&&);
     
-    Ref<GPUTexture> m_textureView;
+    Ref<GPUTexture> m_texture;
 };
 
 } // namespace WebCore