Files
gio/gpu/clip_test.go
T
Admin f73287be87 all: clean up code, upgrade to modern Go
Signed-off-by: ddkwork
2025-05-05 19:46:39 +02:00

22 lines
346 B
Go

// SPDX-License-Identifier: Unlicense OR MIT
package gpu
import (
"testing"
"gioui.org/internal/f32"
)
func BenchmarkEncodeQuadTo(b *testing.B) {
var data [vertStride * 4]byte
for i := 0; b.Loop(); i++ {
v := float32(i)
encodeQuadTo(data[:], 123,
f32.Point{X: v, Y: v},
f32.Point{X: v, Y: v},
f32.Point{X: v, Y: v},
)
}
}