gpu/gl: add support for read-only images to BindImageTexture

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2021-02-09 11:08:11 +01:00
parent d8b29e3420
commit ebfb17ec6c
+2
View File
@@ -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")
}