| 44 | } |
| 45 | |
| 46 | bool LivenessManager::IsAnalyzedBuiltin(uint32_t bi) { |
| 47 | // There are only three builtins that can be analyzed and removed between |
| 48 | // two stages: PointSize, ClipDistance and CullDistance. All others are |
| 49 | // always consumed implicitly by the downstream stage. |
| 50 | const auto builtin = spv::BuiltIn(bi); |
| 51 | return builtin == spv::BuiltIn::PointSize || |
| 52 | builtin == spv::BuiltIn::ClipDistance || |
| 53 | builtin == spv::BuiltIn::CullDistance; |
| 54 | } |
| 55 | |
| 56 | bool LivenessManager::AnalyzeBuiltIn(uint32_t id) { |
| 57 | auto deco_mgr = context()->get_decoration_mgr(); |
no outgoing calls
no test coverage detected