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

Function SetTestValue

tests/gpu/GPUUnitTest.cpp:205–215  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

203 }
204
205 void SetTestValue(float * image, float val, unsigned numComponents)
206 {
207 for (unsigned component = 0; component < numComponents; ++component)
208 {
209 for (unsigned idx = 0; idx < numComponents; ++idx)
210 {
211 const float valSet = (idx == component) ? val : 0.0f;
212 image[idx+component*numComponents] = valSet;
213 }
214 }
215 }
216
217 void UpdateImageTexture(OCIO::OglAppRcPtr & app, OCIOGPUTestRcPtr & test)
218 {

Callers 1

UpdateImageTextureFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected