add possibility to link wgpu library from extern (#4272)

This commit is contained in:
Martin Marmsoler
2026-07-07 14:26:16 +02:00
committed by GitHub
parent 58d76e1617
commit 4cfc8a97f7
12 changed files with 169 additions and 75 deletions

View File

@@ -16,6 +16,7 @@ public:
bool isRenderable() override;
PremultipliedImage readStillImage() override;
const gfx::Texture2DPtr& getTexture() override;
gfx::Texture2DPtr takeTexture();
};
} // namespace webgpu

View File

@@ -38,11 +38,11 @@ public:
// WebGPU-specific methods
void setInstance(void* instance);
void setDevice(void* device);
void setQueue(void* queue);
void setDevice(WGPUDevice device);
void setQueue(WGPUQueue queue);
void* getInstance() const;
void* getDevice() const;
void* getQueue() const;
WGPUDevice getDevice() const;
WGPUQueue getQueue() const;
void* getSurface() const;
// Surface texture access - can be overridden by platform backends