From 963eb2756ade7a9cfc446fad4b44d01ab11f50b6 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Fri, 16 Sep 2022 02:02:02 +0900 Subject: [PATCH] all: fix TODO comments --- internal/gamepad/api_cf_darwin.go | 2 +- internal/graphicsdriver/metal/mtl/mtl_darwin.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/gamepad/api_cf_darwin.go b/internal/gamepad/api_cf_darwin.go index 3fc9acc25..01c6ae812 100644 --- a/internal/gamepad/api_cf_darwin.go +++ b/internal/gamepad/api_cf_darwin.go @@ -117,7 +117,7 @@ func _CFRunLoopRunInMode(mode _CFRunLoopMode, seconds _CFTimeInterval, returnAft if seconds != 0 { panic("corefoundation: seconds greater than 0 is not supported") } - //TODO: support floats + // TODO: support floats ret, _, _ := purego.SyscallN(procCFRunLoopRunInMode, uintptr(mode), b) return _CFRunLoopRunResult(ret) } diff --git a/internal/graphicsdriver/metal/mtl/mtl_darwin.go b/internal/graphicsdriver/metal/mtl/mtl_darwin.go index d57a7cd36..b109ddeb3 100644 --- a/internal/graphicsdriver/metal/mtl/mtl_darwin.go +++ b/internal/graphicsdriver/metal/mtl/mtl_darwin.go @@ -682,7 +682,7 @@ func (d Device) MakeDepthStencilState(dsd DepthStencilDescriptor) DepthStencilSt backFaceStencil.Send(sel_setStencilFailureOperation, uintptr(dsd.BackFaceStencil.StencilFailureOperation)) backFaceStencil.Send(sel_setDepthFailureOperation, uintptr(dsd.BackFaceStencil.DepthFailureOperation)) backFaceStencil.Send(sel_setDepthStencilPassOperation, uintptr(dsd.BackFaceStencil.DepthStencilPassOperation)) - backFaceStencil.Send(sel_setStencilCompareFunction, uintptr(dsd.BackFaceStencil.StencilCompareFunction)) //TODO + backFaceStencil.Send(sel_setStencilCompareFunction, uintptr(dsd.BackFaceStencil.StencilCompareFunction)) // TODO frontFaceStencil := depthStencilDescriptor.Send(sel_frontFaceStencil) frontFaceStencil.Send(sel_setStencilFailureOperation, uintptr(dsd.FrontFaceStencil.StencilFailureOperation)) frontFaceStencil.Send(sel_setDepthFailureOperation, uintptr(dsd.FrontFaceStencil.DepthFailureOperation))