| 114 | } |
| 115 | |
| 116 | ToneMapper::ToneMapper(ref<Device> pDevice, const Properties& props) : RenderPass(pDevice) |
| 117 | { |
| 118 | parseProperties(props); |
| 119 | |
| 120 | createLuminancePass(); |
| 121 | createToneMapPass(); |
| 122 | |
| 123 | updateWhiteBalanceTransform(); |
| 124 | |
| 125 | Sampler::Desc samplerDesc; |
| 126 | samplerDesc.setFilterMode(TextureFilteringMode::Point, TextureFilteringMode::Point, TextureFilteringMode::Point); |
| 127 | mpPointSampler = mpDevice->createSampler(samplerDesc); |
| 128 | samplerDesc.setFilterMode(TextureFilteringMode::Linear, TextureFilteringMode::Linear, TextureFilteringMode::Point); |
| 129 | mpLinearSampler = mpDevice->createSampler(samplerDesc); |
| 130 | } |
| 131 | |
| 132 | void ToneMapper::parseProperties(const Properties& props) |
| 133 | { |
nothing calls this directly
no test coverage detected