| 81 | } |
| 82 | |
| 83 | static std::array<float, 4> GetRTAdjustArray(const RenderTarget* renderTarget) { |
| 84 | std::array<float, 4> result = {}; |
| 85 | result[0] = 2.f / static_cast<float>(renderTarget->width()); |
| 86 | result[2] = 2.f / static_cast<float>(renderTarget->height()); |
| 87 | result[1] = -1.f; |
| 88 | result[3] = -1.f; |
| 89 | if (renderTarget->origin() == ImageOrigin::BottomLeft) { |
| 90 | result[2] = -result[2]; |
| 91 | result[3] = -result[3]; |
| 92 | } |
| 93 | return result; |
| 94 | } |
| 95 | |
| 96 | int ProgramInfo::getProcessorIndex(const Processor* processor) const { |
| 97 | auto result = processorIndices.find(processor); |
no test coverage detected