diff options
| author | 3gg <3gg@shellblade.net> | 2026-03-06 13:30:59 -0800 |
|---|---|---|
| committer | 3gg <3gg@shellblade.net> | 2026-03-06 13:30:59 -0800 |
| commit | 30f41c02aec763d32e62351452da9ef582bc3472 (patch) | |
| tree | 6bec3f65bfdcbf7f1a631da21a6d613bef5db2fa /contrib/SDL-3.2.8/test/testgpu/cube.metal | |
| parent | 452ff21ca02e315c64ceeb3f21c1ea357aeb1bc8 (diff) | |
Move contrib libraries to contrib repo
Diffstat (limited to 'contrib/SDL-3.2.8/test/testgpu/cube.metal')
| -rw-r--r-- | contrib/SDL-3.2.8/test/testgpu/cube.metal | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/contrib/SDL-3.2.8/test/testgpu/cube.metal b/contrib/SDL-3.2.8/test/testgpu/cube.metal deleted file mode 100644 index eaf7175..0000000 --- a/contrib/SDL-3.2.8/test/testgpu/cube.metal +++ /dev/null | |||
| @@ -1,38 +0,0 @@ | |||
| 1 | #include <metal_stdlib> | ||
| 2 | using namespace metal; | ||
| 3 | |||
| 4 | struct VSOutput | ||
| 5 | { | ||
| 6 | float4 color [[user(locn0)]]; | ||
| 7 | float4 position [[position]]; | ||
| 8 | }; | ||
| 9 | |||
| 10 | #ifdef VERTEX | ||
| 11 | |||
| 12 | struct UBO | ||
| 13 | { | ||
| 14 | float4x4 modelViewProj; | ||
| 15 | }; | ||
| 16 | |||
| 17 | struct VSInput | ||
| 18 | { | ||
| 19 | float3 position [[attribute(0)]]; | ||
| 20 | float3 color [[attribute(1)]]; | ||
| 21 | }; | ||
| 22 | |||
| 23 | vertex VSOutput vs_main(VSInput input [[stage_in]], constant UBO& ubo [[buffer(0)]]) | ||
| 24 | { | ||
| 25 | VSOutput output; | ||
| 26 | output.color = float4(input.color, 1.0); | ||
| 27 | output.position = ubo.modelViewProj * float4(input.position, 1.0); | ||
| 28 | return output; | ||
| 29 | } | ||
| 30 | |||
| 31 | #else | ||
| 32 | |||
| 33 | fragment float4 fs_main(VSOutput input [[stage_in]]) | ||
| 34 | { | ||
| 35 | return input.color; | ||
| 36 | } | ||
| 37 | |||
| 38 | #endif \ No newline at end of file | ||
