wg_engine: --redundant code

This commit is contained in:
Hermet Park 2024-06-17 15:53:00 +09:00 committed by Hermet Park
parent cb47dc0d28
commit 846ae09151
2 changed files with 0 additions and 13 deletions

View file

@ -293,18 +293,6 @@ bool WgRenderer::sync()
}
bool WgRenderer::target(uint32_t* buffer, uint32_t stride, uint32_t w, uint32_t h)
{
// store target surface properties
mTargetSurface.stride = stride;
mTargetSurface.w = w;
mTargetSurface.h = h;
mRenderTarget.initialize(mContext, w, h, WG_SSAA_SAMPLES);
return true;
}
// target for native window handle
bool WgRenderer::target(WGPUInstance instance, WGPUSurface surface, uint32_t w, uint32_t h)
{

View file

@ -51,7 +51,6 @@ public:
bool clear() override;
bool sync() override;
bool target(uint32_t* buffer, uint32_t stride, uint32_t w, uint32_t h);
bool target(WGPUInstance instance, WGPUSurface surface, uint32_t w, uint32_t h);
Compositor* target(const RenderRegion& region, ColorSpace cs) override;