A game about forced loneliness, made by TACStudios
1using System;
2using System.Collections.Generic;
3using UnityEditor.Graphing;
4using UnityEditor.ShaderGraph.Drawing.Slots;
5using UnityEditor.ShaderGraph.Internal;
6using UnityEngine;
7using UnityEngine.UIElements;
8
9namespace UnityEditor.ShaderGraph
10{
11 [Serializable]
12 class VirtualTextureInputMaterialSlot : VirtualTextureMaterialSlot
13 {
14 public VirtualTextureInputMaterialSlot()
15 {
16 }
17
18 public VirtualTextureInputMaterialSlot(
19 int slotId,
20 string displayName,
21 string shaderOutputName,
22 ShaderStageCapability stageCapability = ShaderStageCapability.All,
23 bool hidden = false)
24 : base(slotId, displayName, shaderOutputName, SlotType.Input, stageCapability, hidden)
25 {
26 }
27
28 public override VisualElement InstantiateControl()
29 {
30 return null;
31 }
32
33 public override string GetDefaultValue(GenerationMode generationMode)
34 {
35 var matOwner = owner as AbstractMaterialNode;
36 if (matOwner == null)
37 throw new Exception(string.Format("Slot {0} either has no owner, or the owner is not a {1}", this, typeof(AbstractMaterialNode)));
38
39 return matOwner.GetVariableNameForSlot(id);
40 }
41
42 public override void AddDefaultProperty(PropertyCollector properties, GenerationMode generationMode)
43 {
44 }
45
46 public override void GetPreviewProperties(List<PreviewProperty> properties, string name)
47 {
48 }
49
50 public override void CopyValuesFrom(MaterialSlot foundSlot)
51 {
52 }
53 }
54}