| 2389 | } |
| 2390 | |
| 2391 | spvm_word DebugInformation::GetEntryPoint(ShaderStage stage) |
| 2392 | { |
| 2393 | if (m_shader == nullptr) |
| 2394 | return 0; |
| 2395 | |
| 2396 | for (spvm_word i = 0; i < m_shader->entry_point_count; i++) |
| 2397 | if ((stage == ShaderStage::Pixel && m_shader->entry_points[i].exec_model == SpvExecutionModelFragment) || |
| 2398 | (stage == ShaderStage::Vertex && m_shader->entry_points[i].exec_model == SpvExecutionModelVertex) || |
| 2399 | (stage == ShaderStage::Compute && m_shader->entry_points[i].exec_model == SpvExecutionModelGLCompute) || |
| 2400 | (stage == ShaderStage::Geometry && m_shader->entry_points[i].exec_model == SpvExecutionModelGeometry) || |
| 2401 | (stage == ShaderStage::TessellationControl && m_shader->entry_points[i].exec_model == SpvExecutionModelTessellationControl) || |
| 2402 | (stage == ShaderStage::TessellationEvaluation && m_shader->entry_points[i].exec_model == SpvExecutionModelTessellationEvaluation)) |
| 2403 | { |
| 2404 | return m_shader->entry_points[i].id; |
| 2405 | } |
| 2406 | |
| 2407 | return 0; |
| 2408 | } |
| 2409 | |
| 2410 | void DebugInformation::PrepareDebugger() |
| 2411 | { |
nothing calls this directly
no outgoing calls
no test coverage detected