From abfbeb87cc197d1293902158dc7e80698580a99e Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Sun, 18 Jul 2021 12:26:34 +0200 Subject: [PATCH] gpu/internal/d3d11: stub BlitFramebuffer for D3D11 The compute renderer doesn't run on Windows yet, but the d3d11 backend needs the method to satisfy the driver interface. Signed-off-by: Elias Naur --- gpu/internal/d3d11/d3d11_windows.go | 4 ++++ gpu/internal/driver/driver.go | 1 + 2 files changed, 5 insertions(+) diff --git a/gpu/internal/d3d11/d3d11_windows.go b/gpu/internal/d3d11/d3d11_windows.go index c06fbcc9..802ef677 100644 --- a/gpu/internal/d3d11/d3d11_windows.go +++ b/gpu/internal/d3d11/d3d11_windows.go @@ -176,6 +176,10 @@ func (b *Backend) BeginFrame(clear bool, viewport image.Point) driver.Framebuffe return &Framebuffer{ctx: b.ctx, dev: b.dev, renderTarget: renderTarget, depthView: depthView, foreign: true} } +func (b *Backend) BlitFramebuffer(dst, src driver.Framebuffer, srect, drect image.Rectangle) { + panic("not implemented") +} + func (b *Backend) EndFrame() { } diff --git a/gpu/internal/driver/driver.go b/gpu/internal/driver/driver.go index aa6a57e7..a66f9e43 100644 --- a/gpu/internal/driver/driver.go +++ b/gpu/internal/driver/driver.go @@ -46,6 +46,7 @@ type Device interface { BindIndexBuffer(b Buffer) BindImageTexture(unit int, texture Texture, access AccessBits, format TextureFormat) + BlitFramebuffer(dst, src Framebuffer, srect, drect image.Rectangle) MemoryBarrier() DispatchCompute(x, y, z int)