mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-04 17:05:38 +00:00
gpu: drop access flags and format from driver.Device.BindImageTexture
They can be deferred in the drivers that need them. Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
+2
-2
@@ -1278,12 +1278,12 @@ func (g *compute) render(images *textureAtlas, dst driver.Texture, cpuDst cpu.Im
|
||||
|
||||
if !g.useCPU {
|
||||
g.ctx.BeginCompute()
|
||||
g.ctx.BindImageTexture(kernel4OutputUnit, dst, driver.AccessWrite, driver.TextureFormatRGBA8)
|
||||
g.ctx.BindImageTexture(kernel4OutputUnit, dst)
|
||||
img := g.output.nullMaterials
|
||||
if images != nil {
|
||||
img = images.image
|
||||
}
|
||||
g.ctx.BindImageTexture(kernel4AtlasUnit, img, driver.AccessRead, driver.TextureFormatRGBA8)
|
||||
g.ctx.BindImageTexture(kernel4AtlasUnit, img)
|
||||
} else {
|
||||
*g.output.descriptors.Binding2() = cpuDst
|
||||
if images != nil {
|
||||
|
||||
Reference in New Issue
Block a user