| 144 | } |
| 145 | |
| 146 | std::unique_ptr<TransformationReplaceConstantWithUniform> |
| 147 | MakeConstantUniformReplacement(opt::IRContext* ir_context, |
| 148 | const FactManager& fact_manager, |
| 149 | uint32_t constant_id, |
| 150 | uint32_t greater_than_instruction, |
| 151 | uint32_t in_operand_index) { |
| 152 | return MakeUnique<TransformationReplaceConstantWithUniform>( |
| 153 | MakeIdUseDescriptor( |
| 154 | constant_id, |
| 155 | MakeInstructionDescriptor(greater_than_instruction, |
| 156 | spv::Op::OpFOrdGreaterThan, 0), |
| 157 | in_operand_index), |
| 158 | fact_manager.GetUniformDescriptorsForConstant(constant_id)[0], |
| 159 | ir_context->TakeNextId(), ir_context->TakeNextId()); |
| 160 | } |
| 161 | |
| 162 | } // namespace |
| 163 |
no test coverage detected