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()
1153 GLValue GLValue::getMaxValue (Array::InputType type) in getMaxValue()
1155 GLValue rangesHi[(int)Array::INPUTTYPE_LAST]; in getMaxValue()
1157 rangesHi[(int)Array::INPUTTYPE_FLOAT] = GLValue(Float::create(127.0f)); in getMaxValue()
1158 rangesHi[(int)Array::INPUTTYPE_DOUBLE] = GLValue(Double::create(127.0f)); in getMaxValue()
1159 rangesHi[(int)Array::INPUTTYPE_BYTE] = GLValue(Byte::create(127)); in getMaxValue()
1160 rangesHi[(int)Array::INPUTTYPE_UNSIGNED_BYTE] = GLValue(Ubyte::create(255)); in getMaxValue()
1161 rangesHi[(int)Array::INPUTTYPE_UNSIGNED_SHORT] = GLValue(Ushort::create(65530)); in getMaxValue()
1162 rangesHi[(int)Array::INPUTTYPE_SHORT] = GLValue(Short::create(32760)); in getMaxValue()
1163 rangesHi[(int)Array::INPUTTYPE_FIXED] = GLValue(Fixed::create(32760)); in getMaxValue()
1164 rangesHi[(int)Array::INPUTTYPE_INT] = GLValue(Int::create(2147483647)); in getMaxValue()
1165 rangesHi[(int)Array::INPUTTYPE_UNSIGNED_INT] = GLValue(Uint::create(4294967295u)); in getMaxValue()
1166 rangesHi[(int)Array::INPUTTYPE_HALF] = GLValue(Half::create(256.0f)); in getMaxValue()
1171 GLValue GLValue::getMinValue (Array::InputType type) in getMinValue()
1173 GLValue rangesLo[(int)Array::INPUTTYPE_LAST]; in getMinValue()
1175 rangesLo[(int)Array::INPUTTYPE_FLOAT] = GLValue(Float::create(-127.0f)); in getMinValue()
1176 rangesLo[(int)Array::INPUTTYPE_DOUBLE] = GLValue(Double::create(-127.0f)); in getMinValue()
1177 rangesLo[(int)Array::INPUTTYPE_BYTE] = GLValue(Byte::create(-127)); in getMinValue()
1178 rangesLo[(int)Array::INPUTTYPE_UNSIGNED_BYTE] = GLValue(Ubyte::create(0)); in getMinValue()
1179 rangesLo[(int)Array::INPUTTYPE_UNSIGNED_SHORT] = GLValue(Ushort::create(0)); in getMinValue()
1180 rangesLo[(int)Array::INPUTTYPE_SHORT] = GLValue(Short::create(-32760)); in getMinValue()
1181 rangesLo[(int)Array::INPUTTYPE_FIXED] = GLValue(Fixed::create(-32760)); in getMinValue()
1182 rangesLo[(int)Array::INPUTTYPE_INT] = GLValue(Int::create(-2147483647)); in getMinValue()
1183 rangesLo[(int)Array::INPUTTYPE_UNSIGNED_INT] = GLValue(Uint::create(0)); in getMinValue()
1184 rangesLo[(int)Array::INPUTTYPE_HALF] = GLValue(Half::create(-256.0f)); in getMinValue()
1189 float GLValue::toFloat (void) const in toFloat()
1235 …static char* generateArray (int seed, GLValue min, GLValue max, int count, int componentCount, i…
1236 …t, int stride, Array::Primitive primitive, Array::InputType type, GLValue min, GLValue max, float …
1237 …entCount, int stride, Array::Primitive primitive, Array::InputType type, GLValue min, GLValue max);
1245 …static void setData (char* data, Array::InputType type, deRandom& rnd, GLValue min, GLValue max…
1248 …rrayGenerator::setData (char* data, Array::InputType type, deRandom& rnd, GLValue min, GLValue max) in setData()
1254 alignmentSafeAssignment<float>(data, getRandom<GLValue::Float>(rnd, min.fl, max.fl)); in setData()
1260 alignmentSafeAssignment<double>(data, getRandom<GLValue::Float>(rnd, min.fl, max.fl)); in setData()
1266 alignmentSafeAssignment<deInt16>(data, getRandom<GLValue::Short>(rnd, min.s, max.s)); in setData()
1272 alignmentSafeAssignment<deUint16>(data, getRandom<GLValue::Ushort>(rnd, min.us, max.us)); in setData()
1278 alignmentSafeAssignment<deInt8>(data, getRandom<GLValue::Byte>(rnd, min.b, max.b)); in setData()
1284 alignmentSafeAssignment<deUint8>(data, getRandom<GLValue::Ubyte>(rnd, min.ub, max.ub)); in setData()
1290 alignmentSafeAssignment<deInt32>(data, getRandom<GLValue::Fixed>(rnd, min.fi, max.fi)); in setData()
1296 alignmentSafeAssignment<deInt32>(data, getRandom<GLValue::Int>(rnd, min.i, max.i)); in setData()
1302 alignmentSafeAssignment<deUint32>(data, getRandom<GLValue::Uint>(rnd, min.ui, max.ui)); in setData()
1308 alignmentSafeAssignment<deFloat16>(data, getRandom<GLValue::Half>(rnd, min.h, max.h).getValue()); in setData()
1318 char* RandomArrayGenerator::generateArray (int seed, GLValue min, GLValue max, int count, int compo… in generateArray()
1341 …t, int stride, Array::Primitive primitive, Array::InputType type, GLValue min, GLValue max, float … in generateQuads()
1348 …data = createQuads<GLValue::Float>(seed, count, componentCount, offset, stride, primitive, min.fl,… in generateQuads()
1352 …data = createQuads<GLValue::Fixed>(seed, count, componentCount, offset, stride, primitive, min.fi,… in generateQuads()
1356 …data = createQuads<GLValue::Double>(seed, count, componentCount, offset, stride, primitive, min.d,… in generateQuads()
1360 …data = createQuads<GLValue::Byte>(seed, count, componentCount, offset, stride, primitive, min.b, m… in generateQuads()
1364 …data = createQuads<GLValue::Short>(seed, count, componentCount, offset, stride, primitive, min.s, … in generateQuads()
1368 …data = createQuads<GLValue::Ubyte>(seed, count, componentCount, offset, stride, primitive, min.ub,… in generateQuads()
1372 …data = createQuads<GLValue::Ushort>(seed, count, componentCount, offset, stride, primitive, min.us… in generateQuads()
1376 …data = createQuads<GLValue::Uint>(seed, count, componentCount, offset, stride, primitive, min.ui, … in generateQuads()
1380 …data = createQuads<GLValue::Int>(seed, count, componentCount, offset, stride, primitive, min.i, ma… in generateQuads()
1384 …data = createQuads<GLValue::Half>(seed, count, componentCount, offset, stride, primitive, min.h, m… in generateQuads()
1582 …nentCount, int stride, Array::Primitive primitive, Array::InputType type, GLValue min, GLValue max) in generatePerQuad()
1589 …data = createPerQuads<GLValue::Float>(seed, count, componentCount, stride, primitive, min.fl, max.… in generatePerQuad()
1593 …data = createPerQuads<GLValue::Fixed>(seed, count, componentCount, stride, primitive, min.fi, max.… in generatePerQuad()
1597 …data = createPerQuads<GLValue::Double>(seed, count, componentCount, stride, primitive, min.d, max.… in generatePerQuad()
1601 …data = createPerQuads<GLValue::Byte>(seed, count, componentCount, stride, primitive, min.b, max.b); in generatePerQuad()
1605 …data = createPerQuads<GLValue::Short>(seed, count, componentCount, stride, primitive, min.s, max.s… in generatePerQuad()
1609 …data = createPerQuads<GLValue::Ubyte>(seed, count, componentCount, stride, primitive, min.ub, max.… in generatePerQuad()
1613 …data = createPerQuads<GLValue::Ushort>(seed, count, componentCount, stride, primitive, min.us, max… in generatePerQuad()
1617 …data = createPerQuads<GLValue::Uint>(seed, count, componentCount, stride, primitive, min.ui, max.u… in generatePerQuad()
1621 … data = createPerQuads<GLValue::Int>(seed, count, componentCount, stride, primitive, min.i, max.i); in generatePerQuad()
1625 …data = createPerQuads<GLValue::Half>(seed, count, componentCount, stride, primitive, min.h, max.h); in generatePerQuad()
1836 …usage_, int componentCount_, int offset_, int stride_, bool normalize_, GLValue min_, GLValue max_) in ArraySpec()