gpu: rename NewBuffer to NewImmutableBuffer

Prepare for adding NewBuffer for mutable buffers.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2020-02-19 20:23:23 +01:00
parent f5905b3ca8
commit fbb7fffd46
4 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -162,7 +162,7 @@ func (b *Backend) NewTexture(minFilter, magFilter gpu.TextureFilter) gpu.Texture
return tex
}
func (b *Backend) NewBuffer(typ gpu.BufferType, data []byte) gpu.Buffer {
func (b *Backend) NewImmutableBuffer(typ gpu.BufferType, data []byte) gpu.Buffer {
obj := b.funcs.CreateBuffer()
var gltyp Enum
switch typ {