Skip to content

Instantly share code, notes, and snippets.

View neipo13's full-sized avatar

Andrew Napierkowski neipo13

View GitHub Profile
@2DArray
2DArray / AutoCopyToGPU.cs
Last active October 12, 2020 13:56
[CopyToGPU] Attribute for structs and consts
// AutoCopyToGPU, written by Eli Piilonen in 2020, MIT license
// Whenever your C# scripts compile, structs/consts/enums that you
// mark with [CopyToGPU] will be copied to a shader-include file.
// DO NOT put this file in an Editor folder! It will break.
///// C# Usage:
//
// [CopyToGPU]