示例#1
0
 public void ReplaceRenderPass()
 {
     Assert.AreEqual("SFX_PBS_0000000000000088_sort",
                     ShaderLabelTools.WithRenderPass("SFX_PBS_0000000000000088_opaque", "sort"));
 }
示例#2
0
 public void AddRenderPass()
 {
     Assert.AreEqual("SFX_PBS_0000000000000088_near",
                     ShaderLabelTools.WithRenderPass("SFX_PBS_0000000000000088", "near"));
 }
示例#3
0
 public void Empty()
 {
     Assert.AreEqual("_opaque", ShaderLabelTools.WithRenderPass("", "opaque"));
     Assert.AreEqual("_opaque", ShaderLabelTools.WithRenderPass(null, "opaque"));
 }
示例#4
0
 public void RemoveRenderPass()
 {
     Assert.AreEqual("SFX_PBS_0000000000000088_",
                     ShaderLabelTools.WithRenderPass("SFX_PBS_0000000000000088_opaque", ""));
 }