gpu: drop Framebuffer.IsComplete in favour of an error from NewFramebuffer

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2020-02-22 07:22:44 +01:00
parent eb7e11ee8e
commit 9c984e03b8
4 changed files with 15 additions and 22 deletions
+1 -2
View File
@@ -20,7 +20,7 @@ type Backend interface {
IsTimeContinuous() bool
NewTexture(format TextureFormat, width, height int, minFilter, magFilter TextureFilter, bindings BufferBinding) Texture
DefaultFramebuffer() Framebuffer
NewFramebuffer(tex Texture) Framebuffer
NewFramebuffer(tex Texture) (Framebuffer, error)
NewImmutableBuffer(typ BufferBinding, data []byte) Buffer
NewBuffer(typ BufferBinding, size int) Buffer
NewProgram(vertexShader, fragmentShader ShaderSources) (Program, error)
@@ -127,7 +127,6 @@ type Framebuffer interface {
Bind()
Invalidate()
Release()
IsComplete() error
}
type Timer interface {