public void Update(DX11RenderContext context) { if (reset || !this.FOutBuffers[0].Contains(context)) { this.DisposeBuffers(context); DX11RenderTexture3D rt = new DX11RenderTexture3D(context, width, height, depth, DeviceFormatHelper.GetFormat(this.FInFormat[0].Name)); this.FOutBuffers[0][context] = rt; } }
public void Update(IPluginIO pin, DX11RenderContext context) { if (this.updateddevices.Contains(context)) { return; } if (reset || !this.FOutBuffers[0].Contains(context)) { this.DisposeBuffers(context); DX11RenderTexture3D rt = new DX11RenderTexture3D(context, width, height, depth, DeviceFormatHelper.GetFormat(this.FInFormat[0].Name)); this.FOutBuffers[0][context] = rt; } this.updateddevices.Add(context); }
public void Unlock(DX11RenderTexture3D target) { this.volumepool.UnLock(target); }