mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 13:07:26 +01:00
graphicsdriver/metal: Fix comments
This commit is contained in:
parent
672231ddad
commit
19079ae7a2
@ -29,6 +29,8 @@ import (
|
|||||||
//
|
//
|
||||||
// static int count(void* obj) {
|
// static int count(void* obj) {
|
||||||
// // TODO: Don't rely on the number of ref counts. CFGetRetainCount should be used only for debugging.
|
// // TODO: Don't rely on the number of ref counts. CFGetRetainCount should be used only for debugging.
|
||||||
|
// // Note that checking whether MTLCommandBuffer's status is completed or not does not work, because the
|
||||||
|
// // CommandBuffer might still be used even in such situation.
|
||||||
// return CFGetRetainCount(obj);
|
// return CFGetRetainCount(obj);
|
||||||
// }
|
// }
|
||||||
import "C"
|
import "C"
|
||||||
|
@ -494,7 +494,6 @@ func (d *Driver) Reset() error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (d *Driver) Draw(indexLen int, indexOffset int, mode graphics.CompositeMode, colorM *affine.ColorM, filter graphics.Filter, address graphics.Address) error {
|
func (d *Driver) Draw(indexLen int, indexOffset int, mode graphics.CompositeMode, colorM *affine.ColorM, filter graphics.Filter, address graphics.Address) error {
|
||||||
// TODO: Use address
|
|
||||||
if err := mainthread.Run(func() error {
|
if err := mainthread.Run(func() error {
|
||||||
// NSView can be changed anytime (probably). Set this everyframe.
|
// NSView can be changed anytime (probably). Set this everyframe.
|
||||||
cocoaWindow := ns.NewWindow(unsafe.Pointer(d.window))
|
cocoaWindow := ns.NewWindow(unsafe.Pointer(d.window))
|
||||||
|
Loading…
Reference in New Issue
Block a user