generated from seanpm2001/Git-Template_V8
-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
PROJECT_LANG_7.metal
23 lines (20 loc) · 1.09 KB
/
PROJECT_LANG_7.metal
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// Start of script
#include <metal_stdlib>
using namespace metal;
// Sample memory function
kernel void compute(const device float *inVector [[ buffer(0) ]],
device float *outVector [[ buffer(1) ]],
uint id [[ thread_position_in_grid ]])
{
outVector[id] = 1.0 / (1.0 + exp(-inVector[id]));
}
// Project language 7
// For: WacOS/WacTVOS
// About:
// I chose Metal as the seventh project language for this project (WacOS/WacTVOS) as Metal is an Apple language I want to emulate and resemble it here for cross compatibility and software diversity reasons. It is being used in specific APIs within the system, and may replace GLSL/HLSL in some areas. I decided to resemble all Apple languages through their usage on WacTVOS subsystem projects, and this is the 7th (and currently final) official language in use here. It is getting its own project language file, starting here.
/* File info
* File type: Metal source file (*.metal)
* File version: 1 (2022, Sunday, June 19th at 8:01 pm PST)
* Line count (including blank lines and compiler line): 24
*/
// End of script