mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-02-03 06:24:27 +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"
|
"fmt"
|
||||||
"image"
|
"image"
|
||||||
"image/color"
|
"image/color"
|
||||||
|
"unsafe"
|
||||||
|
|
||||||
"github.com/hajimehoshi/ebiten/v2/internal/affine"
|
"github.com/hajimehoshi/ebiten/v2/internal/affine"
|
||||||
"github.com/hajimehoshi/ebiten/v2/internal/atlas"
|
"github.com/hajimehoshi/ebiten/v2/internal/atlas"
|
||||||
@ -296,6 +297,8 @@ type Vertex struct {
|
|||||||
ColorA float32
|
ColorA float32
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var _ [0]byte = [unsafe.Sizeof(Vertex{}) - unsafe.Sizeof(float32(0))*graphics.VertexFloatCount]byte{}
|
||||||
|
|
||||||
// Address represents a sampler address mode.
|
// Address represents a sampler address mode.
|
||||||
type Address int
|
type Address int
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user