docs: add copyright info to metal renderer related code

This commit is contained in:
Acaki
2025-08-12 00:35:10 +08:00
parent 8388076b71
commit 2ab705efdf
13 changed files with 98 additions and 6 deletions
+7
View File
@@ -1,3 +1,10 @@
//
// ImGuiRenderer.h
//
// Created by Andy Grundman.
// Copyright (c) 2025 Moonlight Stream. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <Metal/Metal.h>
#import <MetalKit/MetalKit.h>
+7
View File
@@ -1,3 +1,10 @@
//
// ImGuiRenderer.mm
//
// Created by Andy Grundman.
// Copyright (c) 2025 Moonlight Stream. All rights reserved.
//
#import <AVFoundation/AVFoundation.h>
#import <Metal/Metal.h>
#import "ImGuiRenderer.h"
+8
View File
@@ -1,3 +1,11 @@
//
// MetalConfig.h
//
// Created by Andy Grundman.
// Ported to VoidLink by Acaki.
// Copyright (c) 2025 Moonlight Stream. All rights reserved.
//
// When enabled, rendering occurs on the main application thread.
// This can make responding to UI events during redraw simpler
// to manage because UI calls usually need to occur on the main thread.
+8
View File
@@ -1,3 +1,11 @@
//
// MetalVideoRenderer.h
//
// Created by Andy Grundman.
// Ported to VoidLink by Acaki.
// Copyright (c) 2025 Moonlight Stream. All rights reserved.
//
#import <QuartzCore/CAMetalLayer.h>
#import <QuartzCore/QuartzCore.h>
#import <simd/simd.h>
+8
View File
@@ -1,3 +1,11 @@
//
// MetalVideoRenderer.m
//
// Created by Andy Grundman.
// Ported to VoidLink by Acaki.
// Copyright (c) 2025 Moonlight Stream. All rights reserved.
//
#import "MetalVideoRenderer.h"
#import <CoreGraphics/CoreGraphics.h>
#import <CoreVideo/CoreVideo.h>
+8
View File
@@ -1,3 +1,11 @@
//
// MetalView.h
//
// Created by Andy Grundman.
// Ported to VoidLink by Acaki.
// Copyright (c) 2025 Moonlight Stream. All rights reserved.
//
#import <Metal/Metal.h>
#import <QuartzCore/CAMetalDisplayLink.h>
#import <QuartzCore/CAMetalLayer.h>
+7
View File
@@ -1,3 +1,10 @@
//
// MetalView.m
//
// Created by Andy Grundman.
// Ported to VoidLink by Acaki.
// Copyright (c) 2025 Moonlight Stream. All rights reserved.
//
// This is based on the following Apple example
// https://developer.apple.com/documentation/metal/achieving-smooth-frame-rates-with-a-metal-display-link?language=objc
// https://developer.apple.com/wwdc23/10123/
+8
View File
@@ -1,3 +1,11 @@
//
// MetalViewController.h
//
// Created by Andy Grundman.
// Ported to VoidLink by Acaki.
// Copyright (c) 2025 Moonlight Stream. All rights reserved.
//
#import <Metal/Metal.h>
#import <UIKit/UIKit.h>
#import "FrameQueue.h"
+7 -6
View File
@@ -1,9 +1,10 @@
/*
See the LICENSE.txt file for this sample’s licensing information.
Abstract:
The implementation of the cross-platform game view controller.
*/
//
// MetalViewController.m
//
// Created by Andy Grundman.
// Ported to VoidLink by Acaki.
// Copyright (c) 2025 Moonlight Stream. All rights reserved.
//
#import "MetalViewController.h"
#import "FrameQueue.h"
+8
View File
@@ -1,3 +1,11 @@
//
// Shaders-Linear.metal
//
// Created by Andy Grundman.
// Ported to VoidLink by Acaki.
// Copyright (c) 2025 Moonlight Stream. All rights reserved.
//
#include <metal_stdlib>
#include <simd/simd.h>
+8
View File
@@ -1,3 +1,11 @@
//
// Shaders.metal
//
// Created by Andy Grundman.
// Ported to VoidLink by Acaki.
// Copyright (c) 2025 Moonlight Stream. All rights reserved.
//
#include <metal_stdlib>
#include <simd/simd.h>
+7
View File
@@ -1,3 +1,10 @@
//
// ImGuiPlots.h
//
// Created by Andy Grundman.
// Copyright (c) 2025 Moonlight Stream. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <VideoToolbox/VideoToolbox.h>
+7
View File
@@ -1,3 +1,10 @@
//
// ImGuiPlots.mm
//
// Created by Andy Grundman.
// Copyright (c) 2025 Moonlight Stream. All rights reserved.
//
#import "ImGuiPlots.h"
@implementation ImGuiPlots