mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
ebiten: add check that graphics.VertexFloatCount and Vertex match
This commit is contained in:
parent
df266e8acf
commit
b71f3f86a8
3
image.go
3
image.go
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user