| 935 | } |
| 936 | |
| 937 | void |
| 938 | HistogramPrivate::activateHistogramComputingShader(Histogram::DisplayModeEnum channel) |
| 939 | { |
| 940 | // always running in the main thread |
| 941 | assert( qApp && qApp->thread() == QThread::currentThread() ); |
| 942 | |
| 943 | histogramComputingShader->bind(); |
| 944 | histogramComputingShader->setUniformValue("Tex", 0); |
| 945 | glCheckError(); |
| 946 | histogramComputingShader->setUniformValue( "channel", shaderChannelFromDisplayMode(channel) ); |
| 947 | glBindAttribLocation(histogramComputingShader->programId(), 0, "TexCoord"); |
| 948 | } |
| 949 | |
| 950 | void |
| 951 | HistogramPrivate::activateHistogramRenderingShader(Histogram::DisplayModeEnum channel) |
nothing calls this directly
no test coverage detected