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; |
/* 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) { |