| 269 | } |
| 270 | |
| 271 | void ConsoleComputeApp::RandomizeFrameData() |
| 272 | { |
| 273 | META_FUNCTION_TASK(); |
| 274 | |
| 275 | // Randomize initial game state |
| 276 | m_frame_data = rhi::SubResource(GetRandomFrameData(m_random_engine, GetFieldSize(), GetInitialCellsRatio())); |
| 277 | |
| 278 | // Set frame texture data |
| 279 | m_frame_texture.SetData(m_compute_context.GetComputeCommandKit().GetQueue(), { m_frame_data }); |
| 280 | } |
| 281 | |
| 282 | } // namespace Methane::Tutorials |
| 283 |
nothing calls this directly
no test coverage detected