ebiten: add check that graphics.VertexFloatCount and Vertex match

This commit is contained in:
Hajime Hoshi 2024-08-23 09:58:28 +09:00
parent df266e8acf
commit b71f3f86a8

View File

@ -18,6 +18,7 @@ import (
"fmt"
"image"
"image/color"
"unsafe"
"github.com/hajimehoshi/ebiten/v2/internal/affine"
"github.com/hajimehoshi/ebiten/v2/internal/atlas"
@ -296,6 +297,8 @@ type Vertex struct {
ColorA float32
}
var _ [0]byte = [unsafe.Sizeof(Vertex{}) - unsafe.Sizeof(float32(0))*graphics.VertexFloatCount]byte{}
// Address represents a sampler address mode.
type Address int