コード例 #1
0
 /// <summary>Function to dispose any resources created by the implementation.</summary>
 protected override void OnDispose()
 {
     _volRenderer?.Dispose();
     _volRenderer = null;
 }
コード例 #2
0
 /// <summary>Function called during resource creation.</summary>
 /// <param name="context">The current application graphics context.</param>
 /// <param name="swapChain">The swap chain for presenting the rendered data.</param>
 protected override void OnCreateResources(IGraphicsContext context, GorgonSwapChain swapChain)
 {
     _volRenderer = new VolumeRenderer(context.Graphics, swapChain);
     _volRenderer.CreateResources();
 }