|
|
|
|
|
|
|
|
|
|
public string[] m_PrecisionNames = {"half"}; |
|
|
|
|
|
|
|
protected virtual bool generateDefaultInputs { get { return true; } } |
|
|
|
|
|
|
|
public SlotValue GetSlotDefaultValue(string slotName) |
|
|
|
{ |
|
|
|
var found = m_SlotDefaultValues.FirstOrDefault(x => x.slotName == slotName); |
|
|
|
|
|
|
|
|
|
|
public virtual void GeneratePropertyUsages(ShaderGenerator visitor, GenerationMode generationMode, ConcreteSlotValueType slotValueType) |
|
|
|
{ |
|
|
|
if (!generateDefaultInputs) |
|
|
|
return; |
|
|
|
|
|
|
|
if (!generationMode.IsPreview()) |
|
|
|
return; |
|
|
|
|
|
|
|