gpu,gpu/gl: specialize Buffer.Bind to Buffer.BindIndex

Direct3D can't support a generic Bind, and we don't need it now
BindVertex was added.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2020-02-19 18:51:36 +01:00
parent 9cdc8e6182
commit 826ab9e65b
3 changed files with 8 additions and 5 deletions
+1 -1
View File
@@ -116,7 +116,7 @@ type Uniform interface{}
type Buffer interface {
BindVertex(stride, offset int)
Bind()
BindIndex()
Release()
}