|
|
|
|
|
|
|
|
|
|
public bool IsCompatibleWith(MaterialSlot otherSlot) |
|
|
|
{ |
|
|
|
if(stageCapability != ShaderStageCapability.All && otherSlot.stageCapability != ShaderStageCapability.All) |
|
|
|
{ |
|
|
|
if(stageCapability != otherSlot.stageCapability) |
|
|
|
return false; |
|
|
|
} |
|
|
|
|
|
|
|
return otherSlot != null |
|
|
|
&& otherSlot.owner != owner |
|
|
|
&& otherSlot.isInputSlot != isInputSlot |
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
public bool IsCompatibleStageWith(MaterialSlot otherSlot) |
|
|
|
{ |
|
|
|
var candidateStage = otherSlot.stageCapability; |
|
|
|
return stageCapability == ShaderStageCapability.All || candidateStage == stageCapability; |
|
|
|
} |
|
|
|
|
|
|
|
public virtual string GetDefaultValue(GenerationMode generationMode) |
|
|
|