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 <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2021-07-18 12:26:34 +02:00
parent b7a983d7ff
commit abfbeb87cc
2 changed files with 5 additions and 0 deletions
+4
View File
@@ -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() {
}
+1
View File
@@ -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)