public static void Create <TOutput>(ExecutionModel model, Stream outputStream, Func <IShanqFactory, IQueryable <TOutput> > shaderFunction) { var factory = new ShanqFactory(model, outputStream); shaderFunction(factory).ToArray(); }
public static void Create <TOutput>(ExecutionModel model, Stream outputStream, IVectorTypeLibrary vectorLibrary, Func <IShanqFactory, IQueryable <TOutput> > shaderFunction, string entryPointName = DefaultModuleEntryPoint) { var factory = new ShanqFactory(model, outputStream, vectorLibrary, entryPointName); shaderFunction(factory).ToArray(); }