// input
// normalWS : normal in World Space. length(normal) must be 1
//
// output
// half3: RGB color.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
: | |
: Clone and build volume-control-cli for Windows x64 Desktop, VC++2022 | |
: | |
setlocal enabledelayedexpansion | |
set "OLDCD=%CD%" | |
set /a errorno=1 | |
for /F "delims=#" %%E in ('"prompt #$E# & for %%E in (1) do rem"') do set "esc=%%E" | |
: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
setlocal enabledelayedexpansion | |
set "OLDCD=%CD%" | |
set "libwebp-tgz=libwebp-1.3.2.tar.gz" | |
set "libwebp-tgz-dir=libwebp-1.3.2" | |
set "libwebp-url=https://storage.googleapis.com/downloads.webmproject.org/releases/webp/%libwebp-tgz%" | |
set /a errorno=1 | |
for /F "delims=#" %%E in ('"prompt #$E# & for %%E in (1) do rem"') do set "esc=%%E" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
setlocal enabledelayedexpansion | |
: Set exit code (EXIT_FAILURE) | |
set /a errorno=1 | |
: | |
: Find vswhere | |
: https://github.com/Microsoft/vswhere | |
: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Created by easyaspi314. Released into the public domain. | |
// test:$ gcc -msse -DTEST change_case_simd.c && ./a.out | |
// > cl /EHsc /DTEST change_case_simd.c && .\change_case_simd.exe | |
#include <ctype.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#ifdef DEMONSTRATE_BASIC_ALGORITHM | |
#include <stdint.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// rng_goldengamma.hpp | |
// | |
// License | |
// ------- | |
// SPDX-FileCopyrightText: Copyright (c) Takayuki Matsuoka | |
// SPDX-License-Identifier: CC0-1.0 | |
// | |
#ifndef RNG_GOLDENGAMMA_HPP | |
#define RNG_GOLDENGAMMA_HPP 1 | |
namespace Rng { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static class DebugLog { | |
// Example: 1999-01-23T142536 | |
private static readonly string s_dateTimeNowString = DateTime.Now.ToString( | |
"yyyy-MM-ddTHHmmss", System.Globalization.CultureInfo.InvariantCulture); | |
// Example: %USERPROFILE%\AppData\LocalLow\<MY_COMPANY>\<MY_APP>\debug_1999-01-23T142536.txt | |
private static readonly string s_logPath = | |
$"{Application.persistentDataPath}/debug_{s_dateTimeNowString}.txt"; | |
// Append s to s_logPath |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Advanced Rasterization by Nicolas "Nick" Capens - Devmaster Forum | |
// https://web.archive.org/web/20141221050705/http://forum.devmaster.net/t/advanced-rasterization/6145 | |
// | |
// Result : https://godbolt.org/z/rzvzzf3cc | |
#include <stdio.h> | |
#include <algorithm> | |
#include <vector> | |
#include <cmath> | |
#include <cstdint> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Runtime.InteropServices; | |
using System.Diagnostics; | |
using System.Text; | |
public static class Program { | |
public static void Main() { | |
const string targetTitleName = "ZERO Sievert"; | |
const string targetClassName = "YYGameMakerYY"; |