From cc4e2f08be291edcc9a9587e8a03e7e907f023ac Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Fri, 11 Feb 2022 21:46:11 +0900 Subject: [PATCH] internal/graphicsdriver/metal: rename files --- .../graphicsdriver/metal/{graphics.go => graphics_darwin.go} | 3 --- internal/graphicsdriver/metal/{shader.go => shader_darwin.go} | 3 --- internal/graphicsdriver/metal/{view.go => view_darwin.go} | 3 --- internal/graphicsdriver/metal/view_ios.go | 4 ++-- .../metal/{view_macos.go => view_macos_darwin.go} | 4 ++-- 5 files changed, 4 insertions(+), 13 deletions(-) rename internal/graphicsdriver/metal/{graphics.go => graphics_darwin.go} (99%) rename internal/graphicsdriver/metal/{shader.go => shader_darwin.go} (99%) rename internal/graphicsdriver/metal/{view.go => view_darwin.go} (98%) rename internal/graphicsdriver/metal/{view_macos.go => view_macos_darwin.go} (97%) diff --git a/internal/graphicsdriver/metal/graphics.go b/internal/graphicsdriver/metal/graphics_darwin.go similarity index 99% rename from internal/graphicsdriver/metal/graphics.go rename to internal/graphicsdriver/metal/graphics_darwin.go index 55bb27586..fdd2060dd 100644 --- a/internal/graphicsdriver/metal/graphics.go +++ b/internal/graphicsdriver/metal/graphics_darwin.go @@ -12,9 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -//go:build darwin -// +build darwin - package metal import ( diff --git a/internal/graphicsdriver/metal/shader.go b/internal/graphicsdriver/metal/shader_darwin.go similarity index 99% rename from internal/graphicsdriver/metal/shader.go rename to internal/graphicsdriver/metal/shader_darwin.go index 21f7caa68..91f6c383a 100644 --- a/internal/graphicsdriver/metal/shader.go +++ b/internal/graphicsdriver/metal/shader_darwin.go @@ -12,9 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -//go:build darwin -// +build darwin - package metal import ( diff --git a/internal/graphicsdriver/metal/view.go b/internal/graphicsdriver/metal/view_darwin.go similarity index 98% rename from internal/graphicsdriver/metal/view.go rename to internal/graphicsdriver/metal/view_darwin.go index 1e3f109cc..30c7de37f 100644 --- a/internal/graphicsdriver/metal/view.go +++ b/internal/graphicsdriver/metal/view_darwin.go @@ -12,9 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -//go:build darwin -// +build darwin - package metal import ( diff --git a/internal/graphicsdriver/metal/view_ios.go b/internal/graphicsdriver/metal/view_ios.go index d8d6504d3..1c2aceb13 100644 --- a/internal/graphicsdriver/metal/view_ios.go +++ b/internal/graphicsdriver/metal/view_ios.go @@ -12,8 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. -//go:build darwin && ios -// +build darwin,ios +//go:build ios +// +build ios package metal diff --git a/internal/graphicsdriver/metal/view_macos.go b/internal/graphicsdriver/metal/view_macos_darwin.go similarity index 97% rename from internal/graphicsdriver/metal/view_macos.go rename to internal/graphicsdriver/metal/view_macos_darwin.go index 33e217012..2431a7602 100644 --- a/internal/graphicsdriver/metal/view_macos.go +++ b/internal/graphicsdriver/metal/view_macos_darwin.go @@ -12,8 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. -//go:build darwin && !ios -// +build darwin,!ios +//go:build !ios +// +build !ios package metal