Files
prevara/gio/gpu/clip_test.go
2025-11-30 16:45:22 +00:00

22 lines
366 B
Go

// SPDX-License-Identifier: Unlicense OR MIT
package gpu
import (
"testing"
"github.com/p9c/p9/pkg/gel/gio/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},
)
}
}