gpu/internal/driver: rename TextureFormatSRGB to TextureFormatSRGBA

The format implies an alpha channel; name it accordingly.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2021-07-28 14:25:13 +02:00
parent 43c5082dab
commit b3a8c24334
7 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -211,7 +211,7 @@ func (b *Backend) NewTexture(format driver.TextureFormat, width, height int, min
switch format {
case driver.TextureFormatFloat:
d3dfmt = b.floatFormat
case driver.TextureFormatSRGB:
case driver.TextureFormatSRGBA:
d3dfmt = d3d11.DXGI_FORMAT_R8G8B8A8_UNORM_SRGB
default:
return nil, fmt.Errorf("unsupported texture format %d", format)
+1 -1
View File
@@ -193,7 +193,7 @@ const (
)
const (
TextureFormatSRGB TextureFormat = iota
TextureFormatSRGBA TextureFormat = iota
TextureFormatFloat
TextureFormatRGBA8
)
+1 -1
View File
@@ -704,7 +704,7 @@ func (b *Backend) NewTexture(format driver.TextureFormat, width, height int, min
switch format {
case driver.TextureFormatFloat:
tex.triple = b.floatTriple
case driver.TextureFormatSRGB:
case driver.TextureFormatSRGBA:
tex.triple = b.srgbaTriple
case driver.TextureFormatRGBA8:
tex.triple = textureTriple{gl.RGBA8, gl.RGBA, gl.UNSIGNED_BYTE}