MCPcopy Create free account
hub / github.com/AcademySoftwareFoundation/OpenColorIO / AllocateImageTexture

Function AllocateImageTexture

tests/gpu/GPUUnitTest.cpp:197–203  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers 1

mainFunction · 0.85

Calls 1

initImageMethod · 0.80

Tested by

no test coverage detected