public void Start() { Tracer.Print("Application", "Starting Phantom."); OptixDotNet.Utils.Utils.DetectGPUCompatibility(); Session = OptixSession.Create(); TextureManager = new TextureSamplerManager(Session); SceneProvider = new RdfSceneProvider(); CreateEngine(); }
public OptixSceneBuilder(int rayTypeCount) { textureDirs = GlobalConfiguration.Instance.TextureDirectories; Session = ComponentPipeline.Instance.Session; this.RayTypeCount = rayTypeCount; }
public TextureSamplerManager(OptixSession session) { texCache = TextureCache.Instance; this.session = session; }