Skip to content

Bug on M3 ? #23

@rcarlier

Description

@rcarlier

I wanted to take a look, with my Apple M3.

So, a few go get commands later, I compiled the example.
https://github.com/gogpu/ui/blob/main/examples/hello/main.go

A windows is opening, and...

_mtlValidateArgumentsForTextureViewOnDevice:1855: failed assertion `Texture Creation
source texture textureType (MTLTextureType2DMultisample) not compatible with texture view textureType (MTLTextureType2D).
'
SIGABRT: abort
PC=0x18b02a600 m=3 sigcode=0
signal arrived during cgo execution

if I remove this:

		canvas.Draw(func(cc *gg.Context) {
			// Background via GPU-accelerated filled rect.
			cc.SetRGBA(0.94, 0.94, 0.94, 1) // #F0F0F0
			cc.DrawRectangle(0, 0, float64(cw), float64(ch))
			cc.Fill()

			widgetCanvas := render.NewCanvas(cc, cw, ch)
			uiApp.Window().DrawTo(widgetCanvas)
		})

I have an empty purple windows, and no crash...

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions