mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-06 01:45:36 +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 {
|
switch access {
|
||||||
case backend.AccessWrite:
|
case backend.AccessWrite:
|
||||||
acc = glimpl.WRITE_ONLY
|
acc = glimpl.WRITE_ONLY
|
||||||
|
case backend.AccessRead:
|
||||||
|
acc = glimpl.READ_ONLY
|
||||||
default:
|
default:
|
||||||
panic("unsupported access bits")
|
panic("unsupported access bits")
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user