Skip to content

Instantly share code, notes, and snippets.

@1ceOcean
1ceOcean / bench.cs
Created July 9, 2026 08:48
use `dotnet run -c Release --project benchmarks/Hshg.SingleFileBench -- --dimension 2` run c like bench
using System.Diagnostics;
using System.Globalization;
using System.Numerics;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
Thread.CurrentThread.CurrentCulture = CultureInfo.InvariantCulture;
BenchOptions options = BenchOptions.Parse(args);
if (options.Dimension == 3)
@CarlLee
CarlLee / Bloom.shader
Last active August 27, 2024 02:43
UE4 bloom for unity
Shader "Hidden/Bloom"
{
Properties
{
_MainTex ("Texture", 2D) = "white" {}
}
HLSLINCLUDE
#include "Packages/com.unity.render-pipelines.lightweight/ShaderLibrary/Core.hlsl"
struct appdata