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 BenchmarkDotNet.Columns; | |
using BenchmarkDotNet.Reports; | |
using BenchmarkDotNet.Running; | |
using System.Linq; | |
namespace Example.Benchmarking | |
{ | |
public class BenchmarkCustomColumn : IColumn | |
{ | |
public string Id => nameof(BenchmarkCustomColumn); |
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.Net.Http.Headers; | |
using System.Text; | |
using System.Text.Json; | |
using System.Text.Json.Serialization; | |
namespace GPTClient | |
{ | |
class Program | |
{ | |
static async Task Main(string[] args) |
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.Collections.Generic; | |
using System.IO; | |
using Unity.Collections; | |
using UnityEngine; | |
using UnityEngine.Rendering; | |
namespace Sample | |
{ | |
public struct Buffer | |
{ |
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
Shader "Example/ReflectionProbeMaterial" | |
{ | |
Properties | |
{ | |
_Blend0("CubeMap 1 Blend", Range(0.0, 1.0)) = 0.5 | |
_Blend1("CubeMap 2 Blend", Range(0.0, 1.0)) = 0.5 | |
_Scalar0("CubeMap 1 Scalar", Range(0.0, 20.0)) = 1.0 | |
_Scalar1("CubeMap 2 Scalar", Range(0.0, 20.0)) = 1.0 | |
_Alpha("Alpha", Range(0.0, 1.0)) = 1.0 | |
[NoScaleOffset] _AlbedoMap("Albedo Map", 2D) = "black" {} |
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
// Derived from Unity built-in shader source. | |
// https://raw.githubusercontent.com/chsxf/unity-built-in-shaders/0c7940740e75340009bbed453e2b198e294e4bab/Shaders/DefaultResourcesExtra/Skybox-Panoramic.shader | |
Shader "Skybox/Dual Panoramic" { | |
Properties{ | |
_Tint1("Tint Color 1", Color) = (.5, .5, .5, .5) | |
_Tint2("Tint Color 2", Color) = (.5, .5, .5, .5) | |
[Gamma] _Exposure1("Exposure 1", Range(0, 8)) = 1.0 | |
[Gamma] _Exposure2("Exposure 2", Range(0, 8)) = 1.0 | |
_Rotation1("Rotation1", Range(0, 360)) = 0 |
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.IO; | |
using UnityEditor; | |
using UnityEngine; | |
using System.Linq; | |
using System.Threading.Tasks; | |
public class UnityUtils: MonoBehaviour | |
{ | |
[MenuItem("Tools/Find Broken GUIDs")] |
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.Reflection; | |
using UnityEngine; | |
public static class AnimatorExtensions | |
{ | |
/// <summary>Gets an instance method with single argument of type <typeparamref | |
/// name="TArg0"/> and return type of <typeparamref name="TReturn"/> from <typeparamref | |
/// name="TThis"/> and compiles it into a fast open delegate.</summary> | |
/// <typeparam name="TThis">Type of the class owning the instance method.</typeparam> |