These are my installation etc. notes for running Linux on my new Thinkpad P14s laptop with 32GB RAM, 1TB SDD and 8 Core, 16 Thread AMD CPU.
Here is what they quoted as the specs after I confirmed my order:
| /////////////////////////////////////////////////////////////////////////////// | |
| // ABOUT: A unity Shader .cginc to draw numbers in the fragment shader | |
| // AUTHOR: Freya Holmér | |
| // LICENSE: Use for whatever, commercial or otherwise! | |
| // Don't hold me liable for issues though | |
| // But pls credit me if it works super well <3 | |
| // LIMITATIONS: There's some precision loss beyond 3 decimal places | |
| // CONTRIBUTORS: yes please! if you know a more precise way to get | |
| // decimal digits then pls lemme know! | |
| // GetDecimalSymbolAt() could use some more love/precision |
| :::: | |
| :: A simplified version of the pseudo-make for building a C application using MSVC. | |
| :: Refer to the other gist for details. | |
| :: https://gist.github.com/DennyLindberg/8c0a5e7471a30e6868a00757e8483b78 | |
| :::: | |
| @echo off | |
| :::: PROJECT CONFIGURATION | |
| set exe_file=main.exe |
| :::: | |
| :: A pseudo-make for building a C application using MSVC. | |
| :: https://github.com/DennyLindberg | |
| :: | |
| :: Use any text editor and commandline. RemedyBG or RAD Debugger for debugging. | |
| :: https://remedybg.itch.io/remedybg | |
| :: https://github.com/EpicGamesExt/raddebugger | |
| :: | |
| :: Example: | |
| :: ./make build run arg1 arg2 arg3 |
| @REM You can use --dry-run to just print what will be downloaded. | |
| @REM You can use --cache to specify a custom path for the download cache. | |
| @REM call Setup.bat --dry-run --threads=%NUMBER_OF_PROCESSORS% --cache=C:\Code\Cache\ue-gitdeps ^ | |
| call Setup.bat --threads=%NUMBER_OF_PROCESSORS% --cache=C:\Code\Cache\ue-gitdeps ^ | |
| --exclude=HoloLens ^ | |
| --exclude=Linux ^ | |
| --exclude=linux-64 ^ | |
| --exclude=linux32 ^ | |
| --exclude=linux64 ^ |
| // example how to set up WebGPU rendering on Windows in C | |
| // uses Dawn implementation of WebGPU: https://dawn.googlesource.com/dawn/ | |
| // download pre-built Dawn webgpu.h/dll/lib files from https://github.com/mmozeiko/build-dawn/releases/latest | |
| #include "webgpu.h" | |
| #define _CRT_SECURE_NO_DEPRECATE | |
| #define WIN32_LEAN_AND_MEAN | |
| #include <windows.h> |
| // Estimating CPU frequency... | |
| // CPU frequency: 4.52 GHz | |
| // sum1: value = 15182118497126522709, 0.31 secs, 5.14 cycles/elem | |
| // sum2: value = 15182118497126522709, 0.17 secs, 2.93 cycles/elem | |
| #define RW(x) asm("" : "+r"(x)) | |
| typedef struct Node { | |
| u64 value; | |
| struct Node *next; |
| // example how to set up OpenGL core context on Windows | |
| // and use basic functionality of OpenGL 4.5 version | |
| // important extension functionality used here: | |
| // (4.3) KHR_debug: https://www.khronos.org/registry/OpenGL/extensions/KHR/KHR_debug.txt | |
| // (4.5) ARB_direct_state_access: https://www.khronos.org/registry/OpenGL/extensions/ARB/ARB_direct_state_access.txt | |
| // (4.1) ARB_separate_shader_objects: https://www.khronos.org/registry/OpenGL/extensions/ARB/ARB_separate_shader_objects.txt | |
| // (4.2) ARB_shading_language_420pack: https://www.khronos.org/registry/OpenGL/extensions/ARB/ARB_shading_language_420pack.txt | |
| // (4.3) ARB_explicit_uniform_location: https://www.khronos.org/registry/OpenGL/extensions/ARB/ARB_explicit_uniform_location.txt |
| /* Requires >= SDL 2.0.11 (not yet released) | |
| * Also requires a patch that has not yet been merged: | |
| * https://bugzilla.libsdl.org/show_bug.cgi?id=4796 | |
| */ | |
| #include <SDL.h> | |
| #import <Metal/Metal.h> | |
| #import <QuartzCore/CAMetalLayer.h> | |
| int main(int argc, char **argv) { |