public T CreatePipe <T>(OeipGpgpuType oeipGpgpuType) where T : OeipPipe, new() { int pipeId = OeipHelper.initPipe(oeipGpgpuType); if (pipeId < 0) { return(null); } T pipe = new T(); pipe.SetPipeId(pipeId); //OeipPipes.Add(pipe); return(pipe); }
public T CreatePipe <T>(OeipGpgpuType oeipGpgpuType) where T : OeipPipe, new() { int pipeId = OeipHelper.initPipe(oeipGpgpuType); if (pipeId < 0) { return(null); } T pipe = new T(); pipe.SetPipeId(pipeId); //OeipPipes.Add(pipe); return(pipe); }