• Home
  • Raw
  • Download

Lines Matching refs:GLValue

223 inline GLValue::Float getRandom (deRandom& rnd, GLValue::Float min, GLValue::Float max)  in getRandom()
228 return GLValue::Float::create(min + deRandom_getFloat(&rnd) * (max.to<float>() - min.to<float>())); in getRandom()
232 inline GLValue::Short getRandom (deRandom& rnd, GLValue::Short min, GLValue::Short max) in getRandom()
237 …return GLValue::Short::create((min == max ? min : (deInt16)(min + (deRandom_getUint32(&rnd) % (max… in getRandom()
241 inline GLValue::Ushort getRandom (deRandom& rnd, GLValue::Ushort min, GLValue::Ushort max) in getRandom()
246 …return GLValue::Ushort::create((min == max ? min : (deUint16)(min + (deRandom_getUint32(&rnd) % (m… in getRandom()
250 inline GLValue::Byte getRandom (deRandom& rnd, GLValue::Byte min, GLValue::Byte max) in getRandom()
255 …return GLValue::Byte::create((min == max ? min : (deInt8)(min + (deRandom_getUint32(&rnd) % (max.t… in getRandom()
259 inline GLValue::Ubyte getRandom (deRandom& rnd, GLValue::Ubyte min, GLValue::Ubyte max) in getRandom()
264 …return GLValue::Ubyte::create((min == max ? min : (deUint8)(min + (deRandom_getUint32(&rnd) % (max… in getRandom()
268 inline GLValue::Fixed getRandom (deRandom& rnd, GLValue::Fixed min, GLValue::Fixed max) in getRandom()
273 …return GLValue::Fixed::create((min == max ? min : min + (deRandom_getUint32(&rnd) % (max.to<deUint… in getRandom()
277 inline GLValue::Half getRandom (deRandom& rnd, GLValue::Half min, GLValue::Half max) in getRandom()
284 GLValue::Half h = GLValue::Half::create(fMin + deRandom_getFloat(&rnd) * (fMax - fMin)); in getRandom()
289 inline GLValue::Int getRandom (deRandom& rnd, GLValue::Int min, GLValue::Int max) in getRandom()
294 …return GLValue::Int::create((min == max ? min : min + (deRandom_getUint32(&rnd) % (max.to<deUint32… in getRandom()
298 inline GLValue::Uint getRandom (deRandom& rnd, GLValue::Uint min, GLValue::Uint max) in getRandom()
303 …return GLValue::Uint::create((min == max ? min : min + (deRandom_getUint32(&rnd) % (max.to<deUint3… in getRandom()
307 inline GLValue::Double getRandom (deRandom& rnd, GLValue::Double min, GLValue::Double max) in getRandom()
312 …return GLValue::Double::create(min + deRandom_getFloat(&rnd) * (max.to<float>() - min.to<float>())… in getRandom()
320 inline GLValue::Float minValue (void) in minValue()
322 return GLValue::Float::create(4 * 1.0f); in minValue()
326 inline GLValue::Short minValue (void) in minValue()
328 return GLValue::Short::create(4 * 256); in minValue()
332 inline GLValue::Ushort minValue (void) in minValue()
334 return GLValue::Ushort::create(4 * 256); in minValue()
338 inline GLValue::Byte minValue (void) in minValue()
340 return GLValue::Byte::create(4 * 1); in minValue()
344 inline GLValue::Ubyte minValue (void) in minValue()
346 return GLValue::Ubyte::create(4 * 2); in minValue()
350 inline GLValue::Fixed minValue (void) in minValue()
352 return GLValue::Fixed::create(4 * 512); in minValue()
356 inline GLValue::Int minValue (void) in minValue()
358 return GLValue::Int::create(4 * 16777216); in minValue()
362 inline GLValue::Uint minValue (void) in minValue()
364 return GLValue::Uint::create(4 * 16777216); in minValue()
368 inline GLValue::Half minValue (void) in minValue()
370 return GLValue::Half::create(4 * 1.0f); in minValue()
374 inline GLValue::Double minValue (void) in minValue()
376 return GLValue::Double::create(4 * 1.0f); in minValue()
383 inline GLValue::Fixed abs (GLValue::Fixed val) in abs()
385 return GLValue::Fixed::create(0x7FFFu & val.getValue()); in abs()
389 inline GLValue::Ubyte abs (GLValue::Ubyte val) in abs()
395 inline GLValue::Byte abs (GLValue::Byte val) in abs()
397 return GLValue::Byte::create(0x7Fu & val.getValue()); in abs()
401 inline GLValue::Ushort abs (GLValue::Ushort val) in abs()
407 inline GLValue::Short abs (GLValue::Short val) in abs()
409 return GLValue::Short::create(0x7FFFu & val.getValue()); in abs()
413 inline GLValue::Float abs (GLValue::Float val) in abs()
415 return GLValue::Float::create(std::fabs(val.to<float>())); in abs()
419 inline GLValue::Uint abs (GLValue::Uint val) in abs()
425 inline GLValue::Int abs (GLValue::Int val) in abs()
427 return GLValue::Int::create(0x7FFFFFFFu & val.getValue()); in abs()
431 inline GLValue::Half abs (GLValue::Half val) in abs()
433 return GLValue::Half::create(std::fabs(val.to<float>())); in abs()
437 inline GLValue::Double abs (GLValue::Double val) in abs()
439 return GLValue::Double::create(std::fabs(val.to<float>())); in abs()
1216 GLValue GLValue::getMaxValue (Array::InputType type) in getMaxValue()
1218 GLValue rangesHi[(int)Array::INPUTTYPE_LAST]; in getMaxValue()
1220 rangesHi[(int)Array::INPUTTYPE_FLOAT] = GLValue(Float::create(127.0f)); in getMaxValue()
1221 rangesHi[(int)Array::INPUTTYPE_DOUBLE] = GLValue(Double::create(127.0f)); in getMaxValue()
1222 rangesHi[(int)Array::INPUTTYPE_BYTE] = GLValue(Byte::create(127)); in getMaxValue()
1223 rangesHi[(int)Array::INPUTTYPE_UNSIGNED_BYTE] = GLValue(Ubyte::create(255)); in getMaxValue()
1224 rangesHi[(int)Array::INPUTTYPE_UNSIGNED_SHORT] = GLValue(Ushort::create(65530)); in getMaxValue()
1225 rangesHi[(int)Array::INPUTTYPE_SHORT] = GLValue(Short::create(32760)); in getMaxValue()
1226 rangesHi[(int)Array::INPUTTYPE_FIXED] = GLValue(Fixed::create(32760)); in getMaxValue()
1227 rangesHi[(int)Array::INPUTTYPE_INT] = GLValue(Int::create(2147483647)); in getMaxValue()
1228 rangesHi[(int)Array::INPUTTYPE_UNSIGNED_INT] = GLValue(Uint::create(4294967295u)); in getMaxValue()
1229 rangesHi[(int)Array::INPUTTYPE_HALF] = GLValue(Half::create(256.0f)); in getMaxValue()
1234 GLValue GLValue::getMinValue (Array::InputType type) in getMinValue()
1236 GLValue rangesLo[(int)Array::INPUTTYPE_LAST]; in getMinValue()
1238 rangesLo[(int)Array::INPUTTYPE_FLOAT] = GLValue(Float::create(-127.0f)); in getMinValue()
1239 rangesLo[(int)Array::INPUTTYPE_DOUBLE] = GLValue(Double::create(-127.0f)); in getMinValue()
1240 rangesLo[(int)Array::INPUTTYPE_BYTE] = GLValue(Byte::create(-127)); in getMinValue()
1241 rangesLo[(int)Array::INPUTTYPE_UNSIGNED_BYTE] = GLValue(Ubyte::create(0)); in getMinValue()
1242 rangesLo[(int)Array::INPUTTYPE_UNSIGNED_SHORT] = GLValue(Ushort::create(0)); in getMinValue()
1243 rangesLo[(int)Array::INPUTTYPE_SHORT] = GLValue(Short::create(-32760)); in getMinValue()
1244 rangesLo[(int)Array::INPUTTYPE_FIXED] = GLValue(Fixed::create(-32760)); in getMinValue()
1245 rangesLo[(int)Array::INPUTTYPE_INT] = GLValue(Int::create(-2147483647)); in getMinValue()
1246 rangesLo[(int)Array::INPUTTYPE_UNSIGNED_INT] = GLValue(Uint::create(0)); in getMinValue()
1247 rangesLo[(int)Array::INPUTTYPE_HALF] = GLValue(Half::create(-256.0f)); in getMinValue()
1252 float GLValue::toFloat (void) const in toFloat()
1310 …static char* generateArray (int seed, GLValue min, GLValue max, int count, int componentCount, i…
1311 …t, int stride, Array::Primitive primitive, Array::InputType type, GLValue min, GLValue max, float …
1312 …entCount, int stride, Array::Primitive primitive, Array::InputType type, GLValue min, GLValue max);
1320 …static void setData (char* data, Array::InputType type, deRandom& rnd, GLValue min, GLValue max…
1323 …rrayGenerator::setData (char* data, Array::InputType type, deRandom& rnd, GLValue min, GLValue max) in setData()
1329 alignmentSafeAssignment<float>(data, getRandom<GLValue::Float>(rnd, min.fl, max.fl)); in setData()
1335 alignmentSafeAssignment<double>(data, getRandom<GLValue::Float>(rnd, min.fl, max.fl)); in setData()
1341 alignmentSafeAssignment<deInt16>(data, getRandom<GLValue::Short>(rnd, min.s, max.s)); in setData()
1347 alignmentSafeAssignment<deUint16>(data, getRandom<GLValue::Ushort>(rnd, min.us, max.us)); in setData()
1353 alignmentSafeAssignment<deInt8>(data, getRandom<GLValue::Byte>(rnd, min.b, max.b)); in setData()
1359 alignmentSafeAssignment<deUint8>(data, getRandom<GLValue::Ubyte>(rnd, min.ub, max.ub)); in setData()
1365 alignmentSafeAssignment<deInt32>(data, getRandom<GLValue::Fixed>(rnd, min.fi, max.fi)); in setData()
1371 alignmentSafeAssignment<deInt32>(data, getRandom<GLValue::Int>(rnd, min.i, max.i)); in setData()
1377 alignmentSafeAssignment<deUint32>(data, getRandom<GLValue::Uint>(rnd, min.ui, max.ui)); in setData()
1383 alignmentSafeAssignment<deFloat16>(data, getRandom<GLValue::Half>(rnd, min.h, max.h).getValue()); in setData()
1393 char* RandomArrayGenerator::generateArray (int seed, GLValue min, GLValue max, int count, int compo… in generateArray()
1416 …t, int stride, Array::Primitive primitive, Array::InputType type, GLValue min, GLValue max, float … in generateQuads()
1423 …data = createQuads<GLValue::Float>(seed, count, componentCount, offset, stride, primitive, min.fl,… in generateQuads()
1427 …data = createQuads<GLValue::Fixed>(seed, count, componentCount, offset, stride, primitive, min.fi,… in generateQuads()
1431 …data = createQuads<GLValue::Double>(seed, count, componentCount, offset, stride, primitive, min.d,… in generateQuads()
1435 …data = createQuads<GLValue::Byte>(seed, count, componentCount, offset, stride, primitive, min.b, m… in generateQuads()
1439 …data = createQuads<GLValue::Short>(seed, count, componentCount, offset, stride, primitive, min.s, … in generateQuads()
1443 …data = createQuads<GLValue::Ubyte>(seed, count, componentCount, offset, stride, primitive, min.ub,… in generateQuads()
1447 …data = createQuads<GLValue::Ushort>(seed, count, componentCount, offset, stride, primitive, min.us… in generateQuads()
1451 …data = createQuads<GLValue::Uint>(seed, count, componentCount, offset, stride, primitive, min.ui, … in generateQuads()
1455 …data = createQuads<GLValue::Int>(seed, count, componentCount, offset, stride, primitive, min.i, ma… in generateQuads()
1459 …data = createQuads<GLValue::Half>(seed, count, componentCount, offset, stride, primitive, min.h, m… in generateQuads()
1664 …nentCount, int stride, Array::Primitive primitive, Array::InputType type, GLValue min, GLValue max) in generatePerQuad()
1671 …data = createPerQuads<GLValue::Float>(seed, count, componentCount, stride, primitive, min.fl, max.… in generatePerQuad()
1675 …data = createPerQuads<GLValue::Fixed>(seed, count, componentCount, stride, primitive, min.fi, max.… in generatePerQuad()
1679 …data = createPerQuads<GLValue::Double>(seed, count, componentCount, stride, primitive, min.d, max.… in generatePerQuad()
1683 …data = createPerQuads<GLValue::Byte>(seed, count, componentCount, stride, primitive, min.b, max.b); in generatePerQuad()
1687 …data = createPerQuads<GLValue::Short>(seed, count, componentCount, stride, primitive, min.s, max.s… in generatePerQuad()
1691 …data = createPerQuads<GLValue::Ubyte>(seed, count, componentCount, stride, primitive, min.ub, max.… in generatePerQuad()
1695 …data = createPerQuads<GLValue::Ushort>(seed, count, componentCount, stride, primitive, min.us, max… in generatePerQuad()
1699 …data = createPerQuads<GLValue::Uint>(seed, count, componentCount, stride, primitive, min.ui, max.u… in generatePerQuad()
1703 … data = createPerQuads<GLValue::Int>(seed, count, componentCount, stride, primitive, min.i, max.i); in generatePerQuad()
1707 …data = createPerQuads<GLValue::Half>(seed, count, componentCount, stride, primitive, min.h, max.h); in generatePerQuad()
1918 …usage_, int componentCount_, int offset_, int stride_, bool normalize_, GLValue min_, GLValue max_) in ArraySpec()