initial commit

This commit is contained in:
Jo 2025-01-07 02:06:59 +01:00
parent 6715289efe
commit 788c3389af
37645 changed files with 2526849 additions and 80 deletions

View file

@ -0,0 +1,3 @@
using System.Runtime.CompilerServices;
[assembly: InternalsVisibleTo("Unity.ShaderGraph.Editor")]

View file

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 6df296665d3d1403ea55bcc9c40cfabf
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View file

@ -0,0 +1,14 @@
using System;
namespace UnityEditor.ShaderGraph
{
static class EnumInfo<T> where T : Enum
{
public static T[] values;
static EnumInfo()
{
values = (T[])Enum.GetValues(typeof(T));
}
}
}

View file

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 059873e4956a146a58c70d108c063c88
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View file

@ -0,0 +1,11 @@
using System;
using System.Runtime.InteropServices;
namespace UnityEditor.ShaderGraph
{
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Enum | AttributeTargets.Interface, Inherited = true, AllowMultiple = false)]
internal class GenerationAPIAttribute : Attribute
{
public GenerationAPIAttribute() { }
}
}

View file

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: af97d141ba1d68c4b948599c3056f7fa
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View file

@ -0,0 +1,33 @@
using System;
using System.Text;
namespace UnityEditor.ShaderGraph
{
static class StringBuilderExtensions
{
public static void AppendIndentedLines(this StringBuilder sb, string lines, string indentation)
{
sb.EnsureCapacity(sb.Length + lines.Length);
var charIndex = 0;
while (charIndex < lines.Length)
{
var nextNewLineIndex = lines.IndexOf(Environment.NewLine, charIndex, StringComparison.Ordinal);
if (nextNewLineIndex == -1)
{
nextNewLineIndex = lines.Length;
}
sb.Append(indentation);
for (var i = charIndex; i < nextNewLineIndex; i++)
{
sb.Append(lines[i]);
}
sb.AppendLine();
charIndex = nextNewLineIndex + Environment.NewLine.Length;
}
}
}
}

View file

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: c99436ed641c943e681289b0e47e3574
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View file

@ -0,0 +1,20 @@
{
"name": "Unity.ShaderGraph.Utilities",
"references": [],
"includePlatforms": [
"Editor"
],
"excludePlatforms": [],
"allowUnsafeCode": false,
"overrideReferences": false,
"precompiledReferences": [],
"autoReferenced": false,
"defineConstraints": [],
"versionDefines": [
{
"name": "com.unity.rendering.hybrid",
"expression": "0.14.0-preview.0",
"define": "ENABLE_HYBRID_RENDERER_V2"
}
]
}

View file

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: ade7125e800904674ba0c115208f7ed5
AssemblyDefinitionImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant: