calculate an optimal launch configuration for an image kernel
(&self)
| 105 | |
| 106 | /// calculate an optimal launch configuration for an image kernel |
| 107 | fn launch_dimensions(&self) -> (GridSize, BlockSize) { |
| 108 | let threads = Vec2::broadcast(THREAD_BLOCK_AXIS_LENGTH); |
| 109 | let blocks = (self.buffers.viewport.bounds / threads) + 1; |
| 110 | (blocks.into(), threads.into()) |
| 111 | } |
| 112 | |
| 113 | /// Run postprocessing on the accumulated buffer, color correct it, and divide it by the total |
| 114 | /// samples to yield a final image that can be displayed. |
no outgoing calls
no test coverage detected