From bd0d43f98f0d8f1a1b45d6e98912d1421e0b7554 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Sun, 16 Oct 2022 20:49:12 +0900 Subject: [PATCH] internal/graphicsdriver: use byte for blending members --- internal/graphicsdriver/blend.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/graphicsdriver/blend.go b/internal/graphicsdriver/blend.go index e0f337935..526dac8d1 100644 --- a/internal/graphicsdriver/blend.go +++ b/internal/graphicsdriver/blend.go @@ -23,7 +23,7 @@ type Blend struct { BlendOperationAlpha BlendOperation } -type BlendFactor int +type BlendFactor byte const ( BlendFactorZero BlendFactor = iota @@ -35,7 +35,7 @@ const ( BlendFactorDestinationColor ) -type BlendOperation int +type BlendOperation byte const ( BlendOperationAdd BlendOperation = iota