| 195 | constexpr unsigned g_components = 4; |
| 196 | |
| 197 | void AllocateImageTexture(OCIO::OglAppRcPtr & app) |
| 198 | { |
| 199 | const unsigned numEntries = g_winWidth * g_winHeight * g_components; |
| 200 | OCIOGPUTest::CustomValues::Values image(numEntries, 0.0f); |
| 201 | |
| 202 | app->initImage(g_winWidth, g_winHeight, OCIO::OglApp::COMPONENTS_RGBA, &image[0]); |
| 203 | } |
| 204 | |
| 205 | void SetTestValue(float * image, float val, unsigned numComponents) |
| 206 | { |