public CHullShader(ICDevice device, CShaderReflection reflection) : base(device, reflection) { domain = reflection.GetTesselationDomain(); partitioning = reflection.GetTesselationPartitioning(); outputTopology = reflection.GetTesselationOutputTopology(); outputControlPoints = reflection.GetOutputControlPoints(); maxTesselationFactor = reflection.GetMaxTesselationFactor(); }
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"); } }