示例#1
0
 public static RenderCommand SetIndexBuffer(IndexBuffer buffer)
 {
     Assure.NotNull(buffer);
     Assure.False(buffer.IsDisposed, "Index buffer was disposed.");
     return(new RenderCommand(RenderCommandInstruction.SetIndexBuffer, (IntPtr)buffer.ResourceHandle));
 }