예제 #1
0
 public CHullShader(ICDevice device, CShaderReflection reflection)
     : base(device, reflection)
 {
     domain = reflection.GetTesselationDomain();
     partitioning = reflection.GetTesselationPartitioning();
     outputTopology = reflection.GetTesselationOutputTopology();
     outputControlPoints = reflection.GetOutputControlPoints();
     maxTesselationFactor = reflection.GetMaxTesselationFactor();
 }
예제 #2
0
 static string TesselationTopologyToString(TesselationTopology topology)
 {
     switch (topology)
     {
         case TesselationTopology.Line: return "cw";
         case TesselationTopology.TriangleCW: return "cw";
         case TesselationTopology.TriangleCCW: return "ccw";
         default: throw new ArgumentOutOfRangeException("topology");
     }
 }