| 134 | } |
| 135 | } |
| 136 | void SkrRenderDevice::shutdown() |
| 137 | { |
| 138 | // destroy vram service |
| 139 | if (_vram_service) skr_io_vram_service_t::destroy(_vram_service); |
| 140 | |
| 141 | // destroy rg |
| 142 | if (_render_graph) RenderGraph::destroy(_render_graph); |
| 143 | |
| 144 | // destroy cgpu |
| 145 | for (const auto& [flags, pipeline] : _pipelines) |
| 146 | { |
| 147 | auto rs = pipeline->root_signature; |
| 148 | cgpu_free_render_pipeline(pipeline); |
| 149 | cgpu_free_root_signature(rs); |
| 150 | } |
| 151 | if (_rs_pool) cgpu_free_root_signature_pool(_rs_pool); |
| 152 | if (_static_color_sampler) cgpu_free_sampler(_static_color_sampler); |
| 153 | if (_cgpu_queue) cgpu_free_queue(_cgpu_queue); |
| 154 | if (_cgpu_device) cgpu_free_device(_cgpu_device); |
| 155 | if (_cgpu_instance) cgpu_free_instance(_cgpu_instance); |
| 156 | } |
| 157 | |
| 158 | // create view |
| 159 | SkrRenderWindow* SkrRenderDevice::create_window(SWindowHandle window) |
nothing calls this directly
no test coverage detected