예제 #1
0
 public RasterizerTask(GraphicsContext Context, Rasterizer Rasterizer, int Start, int Step)
 {
     Context_    = Context;
     Rasterizer_ = Rasterizer;
     Start_      = Start;
     Step_       = Step;
     Count_      = Context_.Vertices.Count;
 }
예제 #2
0
 public Pipeline(GraphicsDevice Device)
 {
     Device_     = Device;
     Context_    = Device.GetContext();
     Rasterizer_ = new Rasterizer[Context_.CoreNum];
     for (var Index = 0; Index < Context_.CoreNum; ++Index)
     {
         Rasterizer_[Index] = new Rasterizer(Index, Context_);
     }
 }