mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-01 15:45:38 +00:00
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:
+1
-1
@@ -376,7 +376,7 @@ func newBlitter(ctx Backend) *blitter {
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
quadVerts := ctx.NewBuffer(BufferTypeVertices,
|
||||
quadVerts := ctx.NewImmutableBuffer(BufferTypeVertices,
|
||||
gunsafe.BytesView([]float32{
|
||||
-1, +1, 0, 0,
|
||||
+1, +1, 1, 0,
|
||||
|
||||
Reference in New Issue
Block a user