This is an overview of HDR output support on different platforms.
Windows 10 Creators Update added native HDR support to DXGI:
- must be enabled for display in Settings
- requires flip-mode swap chain
/* | |
* MIT License | |
* | |
* Copyright (c) 2021-2022 John "Nielk1" Klein | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a copy | |
* of this software and associated documentation files (the "Software"), to deal | |
* in the Software without restriction, including without limitation the rights | |
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
* copies of the Software, and to permit persons to whom the Software is |
BasedOnStyle: LLVM | |
IndentWidth: 8 | |
TabWidth: 8 | |
UseTab: Never | |
BreakBeforeBraces: Attach | |
SpaceAfterCStyleCast: true | |
SpacesInParentheses: false | |
PointerAlignment: Right | |
ReferenceAlignment: Right | |
SpacesInAngles: false |
#pragma once | |
#if defined(__amd64__) || defined(__amd64) || defined(__x86_64__) \ | |
|| defined(__x86_64) || defined(_M_AMD64) | |
#define RSQRT_ARCH_AMD64 | |
#define RSQRT_ARCH_X86 | |
#endif | |
#if defined(i386) || defined(__i386) || defined(__i386__) \ | |
|| defined(__i386__) || defined(__IA32__) || defined(_M_IX86) |
To read and write code that contains Georgian and/or Armenian characters, a combination of any preferred typeface with fallback DejaVu Sans Mono can be used.
For example, in VS Code settings.json
:
{
"editor.fontFamily": "'JetBrains Mono', 'DejaVu Sans Mono'"
}
#ifndef MAKEID_H | |
#define MAKEID_H | |
/* | |
Author: | |
Emil Persson, A.K.A. Humus. | |
http://www.humus.name | |
Version history: |
script = | |
tflags = | |
rule cc | |
command = cl /nologo /c /O2 /Ob3 /W3 /D_CRT_SECURE_NO_DEPRECATE /D_CRT_STDIO_INLINE=__forceinline -DLUAJIT_DISABLE_JIT -DLUAJIT_NO_UNWIND /showIncludes $tflags $in | |
deps = msvc | |
rule link | |
command = link /nologo /out:$out $in |
-- source: https://stackoverflow.com/a/50119025 | |
create function numeric_to_bit(numeric) returns bit varying | |
language plpgsql | |
as | |
$$ | |
DECLARE | |
num ALIAS FOR $1; | |
-- 1 + largest positive BIGINT -- | |
max_bigint NUMERIC := '9223372036854775808' :: NUMERIC(19, 0); |
// | |
// PUBLIC DOMAIN CRT STYLED SCAN-LINE SHADER | |
// | |
// by Timothy Lottes | |
// | |
// This is more along the style of a really good CGA arcade monitor. | |
// With RGB inputs instead of NTSC. | |
// The shadow mask example has the mask rotated 90 degrees for less chromatic aberration. | |
// | |
// Left it unoptimized to show the theory behind the algorithm. |
const { Client, Intents } = require('discord.js'); | |
const { joinVoiceChannel, createAudioResource, createAudioPlayer, VoiceConnectionStatus, entersState, AudioPlayerStatus } = require("@discordjs/voice"); | |
const { token } = require('./config.json'); | |
const readline = require('readline'); | |
const rl = readline.createInterface({ | |
input: process.stdin, | |
output: process.stdout, | |
prompt: 'TTS> ' | |
}); | |
const util = require('util'); |