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
+1 -8
View File
@@ -42,7 +42,7 @@ type Device interface {
BindTexture(unit int, t Texture)
BindVertexBuffer(b Buffer, offset int)
BindIndexBuffer(b Buffer)
BindImageTexture(unit int, texture Texture, access AccessBits, format TextureFormat)
BindImageTexture(unit int, texture Texture)
BindUniforms(buf Buffer)
BindStorageBuffer(binding int, buf Buffer)
@@ -91,8 +91,6 @@ type BlendDesc struct {
SrcFactor, DstFactor BlendFactor
}
type AccessBits uint8
type BlendFactor uint8
type Topology uint8
@@ -164,11 +162,6 @@ const (
TextureFormatOutput
)
const (
AccessRead AccessBits = 1 << iota
AccessWrite
)
const (
FilterNearest TextureFilter = iota
FilterLinear