initial commit
This commit is contained in:
parent
6715289efe
commit
788c3389af
37645 changed files with 2526849 additions and 80 deletions
|
@ -0,0 +1,17 @@
|
|||
namespace UnityEditor.ShaderGraph
|
||||
{
|
||||
[GenerationAPI]
|
||||
internal enum Blend
|
||||
{
|
||||
One,
|
||||
Zero,
|
||||
SrcColor,
|
||||
SrcAlpha,
|
||||
DstColor,
|
||||
DstAlpha,
|
||||
OneMinusSrcColor,
|
||||
OneMinusSrcAlpha,
|
||||
OneMinusDstColor,
|
||||
OneMinusDstAlpha,
|
||||
}
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 33b35111bec577a4f87a215814291d59
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -0,0 +1,12 @@
|
|||
namespace UnityEditor.ShaderGraph
|
||||
{
|
||||
[GenerationAPI]
|
||||
internal enum BlendOp
|
||||
{
|
||||
Add,
|
||||
Sub,
|
||||
RevSub,
|
||||
Min,
|
||||
Max,
|
||||
}
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: f37bd1bb1cb123a409370c2cc1eefef4
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -0,0 +1,10 @@
|
|||
namespace UnityEditor.ShaderGraph
|
||||
{
|
||||
[GenerationAPI]
|
||||
internal enum Cull
|
||||
{
|
||||
Back,
|
||||
Front,
|
||||
Off,
|
||||
}
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 1d9ef2c068925ac42b1a5793f3706b87
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -0,0 +1,13 @@
|
|||
using System;
|
||||
|
||||
namespace UnityEditor.ShaderGraph
|
||||
{
|
||||
[GenerationAPI]
|
||||
[Serializable]
|
||||
internal enum IncludeLocation
|
||||
{
|
||||
Pregraph,
|
||||
Graph,
|
||||
Postgraph
|
||||
}
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 7e093d7ce84934ae4b8f634c4a13b244
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -0,0 +1,31 @@
|
|||
using System;
|
||||
|
||||
namespace UnityEditor.ShaderGraph
|
||||
{
|
||||
[GenerationAPI]
|
||||
internal enum InstancingOptions
|
||||
{
|
||||
RenderingLayer,
|
||||
NoLightProbe,
|
||||
NoLodFade,
|
||||
}
|
||||
|
||||
[GenerationAPI]
|
||||
internal static class InstancingOptionsExtensions
|
||||
{
|
||||
public static string ToShaderString(this InstancingOptions options)
|
||||
{
|
||||
switch (options)
|
||||
{
|
||||
case InstancingOptions.RenderingLayer:
|
||||
return "renderinglayer";
|
||||
case InstancingOptions.NoLightProbe:
|
||||
return "nolightprobe";
|
||||
case InstancingOptions.NoLodFade:
|
||||
return "nolodfade";
|
||||
default:
|
||||
throw new ArgumentOutOfRangeException();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 8b80934453d594a42bb23876834a3d34
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -0,0 +1,10 @@
|
|||
namespace UnityEditor.ShaderGraph
|
||||
{
|
||||
[GenerationAPI]
|
||||
internal enum KeywordDefinition
|
||||
{
|
||||
ShaderFeature, // adds #pragma shaderfeature for the keyword
|
||||
MultiCompile, // adds #pragma multicompile for the keyword
|
||||
Predefined // does not add ShaderFeature or MultiCompile pragmas, and is forced to be !exposed
|
||||
}
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 0dbbf8506ff43e241954711690ea8fde
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -0,0 +1,9 @@
|
|||
namespace UnityEditor.ShaderGraph
|
||||
{
|
||||
[GenerationAPI]
|
||||
internal enum KeywordScope
|
||||
{
|
||||
Local,
|
||||
Global
|
||||
}
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 24ba7ffe7e34c774a8c8c76d67b6bf23
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -0,0 +1,20 @@
|
|||
namespace UnityEditor.ShaderGraph
|
||||
{
|
||||
[GenerationAPI]
|
||||
internal enum KeywordShaderStage
|
||||
{
|
||||
Default = 0, // equivalent to ALL
|
||||
|
||||
Vertex = (1 << 0),
|
||||
Fragment = (1 << 1),
|
||||
Geometry = (1 << 2),
|
||||
Hull = (1 << 3),
|
||||
Domain = (1 << 4),
|
||||
RayTracing = (1 << 5),
|
||||
|
||||
// Common aggregates
|
||||
FragmentAndRaytracing = (Fragment | RayTracing),
|
||||
VertexFragmentAndRaytracing = (Vertex | Fragment | RayTracing),
|
||||
All = (Vertex | Fragment | Geometry | Hull | Domain | RayTracing)
|
||||
}
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: eebb07dc513b2c443817955c36dbcf1b
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -0,0 +1,9 @@
|
|||
namespace UnityEditor.ShaderGraph
|
||||
{
|
||||
[GenerationAPI]
|
||||
internal enum KeywordType
|
||||
{
|
||||
Boolean,
|
||||
Enum
|
||||
}
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 6373167f768c6a34d9a24af8b0ead19d
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -0,0 +1,12 @@
|
|||
using System;
|
||||
|
||||
namespace UnityEditor.ShaderGraph
|
||||
{
|
||||
[GenerationAPI]
|
||||
internal enum NormalDropOffSpace
|
||||
{
|
||||
Tangent,
|
||||
Object,
|
||||
World
|
||||
}
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 6fd001e2a845e514ebb19d4d11f3e0a9
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -0,0 +1,76 @@
|
|||
using System;
|
||||
|
||||
namespace UnityEditor.ShaderGraph
|
||||
{
|
||||
[GenerationAPI]
|
||||
internal enum Platform
|
||||
{
|
||||
D3D11,
|
||||
GLCore,
|
||||
GLES,
|
||||
GLES3,
|
||||
Metal,
|
||||
Vulkan,
|
||||
D3D9,
|
||||
XboxOne,
|
||||
GameCoreXboxOne,
|
||||
GameCoreXboxSeries,
|
||||
Playstation,
|
||||
Switch,
|
||||
PS5,
|
||||
}
|
||||
|
||||
[GenerationAPI]
|
||||
internal static class PlatformExtensions
|
||||
{
|
||||
public static string ToShaderString(this Platform platform)
|
||||
{
|
||||
switch (platform)
|
||||
{
|
||||
case Platform.D3D11:
|
||||
return "d3d11";
|
||||
case Platform.GLCore:
|
||||
return "glcore";
|
||||
case Platform.GLES:
|
||||
return "gles";
|
||||
case Platform.GLES3:
|
||||
return "gles3";
|
||||
case Platform.Metal:
|
||||
return "metal";
|
||||
case Platform.Vulkan:
|
||||
return "vulkan";
|
||||
case Platform.D3D9:
|
||||
return "d3d11_9x";
|
||||
case Platform.XboxOne:
|
||||
return "xboxone";
|
||||
case Platform.GameCoreXboxOne:
|
||||
return "xboxone";
|
||||
case Platform.GameCoreXboxSeries:
|
||||
return "xboxseries";
|
||||
case Platform.Playstation:
|
||||
return "playstation";
|
||||
case Platform.Switch:
|
||||
return "switch";
|
||||
case Platform.PS5:
|
||||
return "ps5";
|
||||
default:
|
||||
throw new ArgumentOutOfRangeException();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
internal static class PragmaRenderers
|
||||
{
|
||||
// Return high end platform list for the only renderer directive (The list use by HDRP)
|
||||
internal static Platform[] GetHighEndPlatformArray()
|
||||
{
|
||||
return new Platform[] { Platform.D3D11, Platform.Playstation, Platform.XboxOne, Platform.GameCoreXboxSeries, Platform.Vulkan, Platform.Metal, Platform.Switch };
|
||||
}
|
||||
|
||||
// Return platform list not compatible with DXC (The list use by HDRP)
|
||||
internal static Platform[] GetNeverUseDXCPlatformArray()
|
||||
{
|
||||
return new Platform[] { Platform.Metal };
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 3400fb009338a904db10884910a88500
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -0,0 +1,24 @@
|
|||
namespace UnityEditor.ShaderGraph.Internal
|
||||
{
|
||||
[GenerationAPI]
|
||||
public enum PropertyType
|
||||
{
|
||||
Color,
|
||||
Texture2D,
|
||||
Texture2DArray,
|
||||
Texture3D,
|
||||
Cubemap,
|
||||
Gradient,
|
||||
Boolean,
|
||||
Float,
|
||||
Vector2,
|
||||
Vector3,
|
||||
Vector4,
|
||||
Matrix2,
|
||||
Matrix3,
|
||||
Matrix4,
|
||||
SamplerState,
|
||||
VirtualTexture,
|
||||
PropertyConnectionState
|
||||
}
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 899473813cd13ff4c9a8c057d1bae8a1
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -0,0 +1,12 @@
|
|||
namespace UnityEditor.ShaderGraph
|
||||
{
|
||||
[GenerationAPI]
|
||||
internal enum RenderQueue
|
||||
{
|
||||
Background,
|
||||
Geometry,
|
||||
Transparent,
|
||||
Overlay,
|
||||
AlphaTest
|
||||
}
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 1aa36b6100be7dc4792b1129c202f42e
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -0,0 +1,12 @@
|
|||
namespace UnityEditor.ShaderGraph
|
||||
{
|
||||
[GenerationAPI]
|
||||
internal enum RenderType
|
||||
{
|
||||
Opaque,
|
||||
Transparent,
|
||||
TransparentCutout,
|
||||
Background,
|
||||
Overlay
|
||||
}
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 13ef64afcd6045a448744a1633363679
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -0,0 +1,46 @@
|
|||
using System;
|
||||
|
||||
namespace UnityEditor.ShaderGraph
|
||||
{
|
||||
[GenerationAPI]
|
||||
internal enum ShaderModel
|
||||
{
|
||||
Target20,
|
||||
Target25,
|
||||
Target30,
|
||||
Target35,
|
||||
Target40,
|
||||
Target45,
|
||||
Target46,
|
||||
Target50
|
||||
}
|
||||
|
||||
[GenerationAPI]
|
||||
internal static class ShaderModelExtensions
|
||||
{
|
||||
public static string ToShaderString(this ShaderModel shaderModel)
|
||||
{
|
||||
switch (shaderModel)
|
||||
{
|
||||
case ShaderModel.Target20:
|
||||
return "2.0";
|
||||
case ShaderModel.Target25:
|
||||
return "2.5";
|
||||
case ShaderModel.Target30:
|
||||
return "3.0";
|
||||
case ShaderModel.Target35:
|
||||
return "3.5";
|
||||
case ShaderModel.Target40:
|
||||
return "4.0";
|
||||
case ShaderModel.Target45:
|
||||
return "4.5";
|
||||
case ShaderModel.Target46:
|
||||
return "4.6";
|
||||
case ShaderModel.Target50:
|
||||
return "5.0";
|
||||
default:
|
||||
throw new ArgumentOutOfRangeException();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: e2b068c670cfd41db8be9813bb8791af
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -0,0 +1,18 @@
|
|||
namespace UnityEditor.ShaderGraph
|
||||
{
|
||||
[GenerationAPI]
|
||||
internal enum ShaderValueType
|
||||
{
|
||||
Boolean,
|
||||
Float,
|
||||
Float2,
|
||||
Float3,
|
||||
Float4,
|
||||
Matrix2,
|
||||
Matrix3,
|
||||
Matrix4,
|
||||
Integer,
|
||||
Uint,
|
||||
Uint4,
|
||||
}
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 6162f300732c7447d88725735caeab62
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -0,0 +1,10 @@
|
|||
namespace UnityEditor.ShaderGraph
|
||||
{
|
||||
[GenerationAPI]
|
||||
internal enum StructFieldOptions
|
||||
{
|
||||
Static = 0,
|
||||
Optional = 1 << 0,
|
||||
Generated = 1 << 1
|
||||
}
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 9e0012609a62b4276b0d7c21c7bd0ad4
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -0,0 +1,14 @@
|
|||
namespace UnityEditor.ShaderGraph
|
||||
{
|
||||
[GenerationAPI]
|
||||
internal enum ZTest
|
||||
{
|
||||
Less,
|
||||
Greater,
|
||||
LEqual,
|
||||
GEqual,
|
||||
Equal,
|
||||
NotEqual,
|
||||
Always,
|
||||
}
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 8e20269cb921cc744982d17577ad6fc4
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -0,0 +1,9 @@
|
|||
namespace UnityEditor.ShaderGraph
|
||||
{
|
||||
[GenerationAPI]
|
||||
internal enum ZWrite
|
||||
{
|
||||
On,
|
||||
Off,
|
||||
}
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: d0630647cd1e14246b917addf61e7eec
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
Loading…
Add table
Add a link
Reference in a new issue