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:
Elias Naur
2021-09-19 20:27:23 +02:00
parent 0bdd24c51e
commit 1f0f88dbd3
5 changed files with 25 additions and 38 deletions
+2 -2
View File
@@ -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 {