internal/graphicsdriver/metal: Rename files to remove +build comments

This commit is contained in:
Hajime Hoshi 2021-08-23 02:01:16 +09:00
parent 8b269d4358
commit 35deb53624
11 changed files with 6 additions and 33 deletions

View File

@ -12,9 +12,6 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build darwin
// +build darwin
// Package ca provides access to Apple's Core Animation API (https://developer.apple.com/documentation/quartzcore).
//
// This package is in very early stages of development.
@ -36,7 +33,7 @@ import (
// #cgo !ios CFLAGS: -mmacosx-version-min=10.12
// #cgo LDFLAGS: -framework QuartzCore -framework Foundation -framework CoreGraphics
//
// #include "ca.h"
// #include "ca_darwin.h"
import "C"
// Layer is an object that manages image-based content and

View File

@ -12,8 +12,6 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// +build darwin
#include <stdint.h>
typedef unsigned long uint_t;

View File

@ -12,9 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// +build darwin
#include "ca.h"
#include "ca_darwin.h"
#import <QuartzCore/QuartzCore.h>
void *MakeMetalLayer() {

View File

@ -12,9 +12,6 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build darwin
// +build darwin
package mtl_test
import (

View File

@ -12,9 +12,6 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build darwin
// +build darwin
// Package mtl provides access to Apple's Metal API (https://developer.apple.com/documentation/metal).
//
// Package mtl requires macOS version 10.13 or newer.
@ -34,7 +31,7 @@ import (
// #cgo !ios CFLAGS: -mmacosx-version-min=10.12
// #cgo LDFLAGS: -framework Metal -framework CoreGraphics -framework Foundation
//
// #include "mtl.h"
// #include "mtl_darwin.h"
// #include <stdlib.h>
import "C"

View File

@ -12,8 +12,6 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// +build darwin
#include <stddef.h>
#include <stdint.h>

View File

@ -12,9 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// +build darwin
#include "mtl.h"
#include "mtl_darwin.h"
#import <Metal/Metal.h>
#include <stdlib.h>

View File

@ -12,9 +12,6 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build darwin
// +build darwin
package mtl_test
import (

View File

@ -12,9 +12,6 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build darwin
// +build darwin
// Package ns provides access to Apple's AppKit API (https://developer.apple.com/documentation/appkit).
//
// This package is in very early stages of development.
@ -30,7 +27,7 @@ import (
// #cgo !ios CFLAGS: -mmacosx-version-min=10.12
//
// #include "ns.h"
// #include "ns_darwin.h"
import "C"
// Window is a window that an app displays on the screen.

View File

@ -12,8 +12,6 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// +build darwin
#include "stdint.h"
void *Window_ContentView(uintptr_t window);

View File

@ -12,9 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// +build darwin
#include "ns.h"
#include "ns_darwin.h"
#import <Cocoa/Cocoa.h>
void *Window_ContentView(uintptr_t window) {