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,11 @@
using System;
using System.Collections.Generic;
using System.Linq;
namespace UnityEditor.ShaderGraph.Drawing
{
[AttributeUsage(AttributeTargets.Method)]
class BuiltinKeywordAttribute : Attribute
{
}
}

View file

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

View file

@ -0,0 +1,9 @@
using System;
namespace UnityEditor.ShaderGraph
{
[AttributeUsage(AttributeTargets.Class, AllowMultiple = true, Inherited = false)]
internal abstract class ContextFilterableAttribute : Attribute
{
}
}

View file

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

View file

@ -0,0 +1,24 @@
using System;
namespace UnityEditor.ShaderGraph.Drawing
{
[AttributeUsage(AttributeTargets.Property)]
public class InspectableAttribute : Attribute
{
// String value to use in the Property name TextLabel
public string labelName { get; private set; }
// The default value of this property
public object defaultValue { get; private set; }
// String value to supply if you wish to use a custom style when drawing this property
public string customStyleName { get; private set; }
public InspectableAttribute(string labelName, object defaultValue, string customStyleName = "")
{
this.labelName = labelName;
this.defaultValue = defaultValue;
this.customStyleName = customStyleName;
}
}
}

View file

@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 135160e3cb114b679f9d5363c349b289
timeCreated: 1587157677

View file

@ -0,0 +1,9 @@
using System;
namespace UnityEditor.ShaderGraph
{
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = false)]
internal class NeverAllowedByTargetAttribute : ContextFilterableAttribute
{
}
}

View file

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

View file

@ -0,0 +1,15 @@
using System;
namespace UnityEditor.ShaderGraph.Drawing
{
[AttributeUsage(AttributeTargets.Class)]
public class SGPropertyDrawerAttribute : Attribute
{
public Type propertyType { get; private set; }
public SGPropertyDrawerAttribute(Type propertyType)
{
this.propertyType = propertyType;
}
}
}

View file

@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 291f21a1598748ba8fe53ab69eb10b5e
timeCreated: 1588090538

View file

@ -0,0 +1,15 @@
using System;
namespace UnityEditor.ShaderGraph
{
[GenerationAPI]
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = false)]
internal class SRPFilterAttribute : ContextFilterableAttribute
{
public Type[] srpTypes = null;
public SRPFilterAttribute(params Type[] WorksWithSRP)
{
srpTypes = WorksWithSRP;
}
}
}

View file

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

View file

@ -0,0 +1,15 @@
using System;
namespace UnityEditor.ShaderGraph
{
[GenerationAPI]
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = false)]
internal class SubTargetFilterAttribute : ContextFilterableAttribute
{
public Type[] subTargetTypes = null;
public SubTargetFilterAttribute(params Type[] WorksWithSubTargets)
{
subTargetTypes = WorksWithSubTargets;
}
}
}

View file

@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: d2c11681665d4bbdbfb8e733b901fde5
timeCreated: 1615524028