mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-01 15:45:38 +00:00
gpu/gl: add support for read-only images to BindImageTexture
Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -334,6 +334,8 @@ func (b *Backend) BindImageTexture(unit int, tex backend.Texture, access backend
|
||||
switch access {
|
||||
case backend.AccessWrite:
|
||||
acc = glimpl.WRITE_ONLY
|
||||
case backend.AccessRead:
|
||||
acc = glimpl.READ_ONLY
|
||||
default:
|
||||
panic("unsupported access bits")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user