• Home
  • Raw
  • Download

Lines Matching refs:Array

67 std::string Array::targetToString(Target target)  in targetToString()
75 return de::getSizedArrayElement<Array::TARGET_LAST>(targets, (int)target); in targetToString()
78 std::string Array::inputTypeToString(InputType type) in inputTypeToString()
99 return de::getSizedArrayElement<Array::INPUTTYPE_LAST>(types, (int)type); in inputTypeToString()
102 std::string Array::outputTypeToString(OutputType type) in outputTypeToString()
123 return de::getSizedArrayElement<Array::OUTPUTTYPE_LAST>(types, (int)type); in outputTypeToString()
126 std::string Array::usageTypeToString(Usage usage) in usageTypeToString()
144 return de::getSizedArrayElement<Array::USAGE_LAST>(usages, (int)usage); in usageTypeToString()
147 std::string Array::storageToString (Storage storage) in storageToString()
155 return de::getSizedArrayElement<Array::STORAGE_LAST>(storages, (int)storage); in storageToString()
158 std::string Array::primitiveToString (Primitive primitive) in primitiveToString()
168 return de::getSizedArrayElement<Array::PRIMITIVE_LAST>(primitives, (int)primitive); in primitiveToString()
171 int Array::inputTypeSize (InputType type) in inputTypeSize()
192 return de::getSizedArrayElement<Array::INPUTTYPE_LAST>(size, (int)type); in inputTypeSize()
195 static bool inputTypeIsFloatType (Array::InputType type) in inputTypeIsFloatType()
197 if (type == Array::INPUTTYPE_FLOAT) in inputTypeIsFloatType()
199 if (type == Array::INPUTTYPE_FIXED) in inputTypeIsFloatType()
201 if (type == Array::INPUTTYPE_DOUBLE) in inputTypeIsFloatType()
203 if (type == Array::INPUTTYPE_HALF) in inputTypeIsFloatType()
208 static bool outputTypeIsFloatType (Array::OutputType type) in outputTypeIsFloatType()
210 if (type == Array::OUTPUTTYPE_FLOAT in outputTypeIsFloatType()
211 || type == Array::OUTPUTTYPE_VEC2 in outputTypeIsFloatType()
212 || type == Array::OUTPUTTYPE_VEC3 in outputTypeIsFloatType()
213 || type == Array::OUTPUTTYPE_VEC4) in outputTypeIsFloatType()
394 , m_target (Array::TARGET_ARRAY) in ContextArray()
395 , m_inputType (Array::INPUTTYPE_FLOAT) in ContextArray()
396 , m_outputType (Array::OUTPUTTYPE_VEC4) in ContextArray()
421 Array* ContextArrayPack::getArray (int i) in getArray()
481 void ContextArray::bindIndexArray (Array::Target target) in bindIndexArray()
566 GLenum ContextArray::targetToGL (Array::Target target) in targetToGL()
574 return de::getSizedArrayElement<Array::TARGET_LAST>(targets, (int)target); in targetToGL()
577 GLenum ContextArray::usageToGL (Array::Usage usage) in usageToGL()
595 return de::getSizedArrayElement<Array::USAGE_LAST>(usages, (int)usage); in usageToGL()
598 GLenum ContextArray::inputTypeToGL (Array::InputType type) in inputTypeToGL()
617 return de::getSizedArrayElement<Array::INPUTTYPE_LAST>(types, (int)type); in inputTypeToGL()
620 std::string ContextArray::outputTypeToGLType (Array::OutputType type) in outputTypeToGLType()
641 return de::getSizedArrayElement<Array::OUTPUTTYPE_LAST>(types, (int)type); in outputTypeToGLType()
644 GLenum ContextArray::primitiveToGL (Array::Primitive primitive) in primitiveToGL()
654 return de::getSizedArrayElement<Array::PRIMITIVE_LAST>(primitives, (int)primitive); in primitiveToGL()
678 void ContextArrayPack::newArray (Array::Storage storage) in newArray()
694 static rr::GenericVecType mapOutputType (const Array::OutputType& type);
695 static int getComponentCount (const Array::OutputType& type);
872 case (Array::OUTPUTTYPE_FLOAT): in genVertexSource()
877 case (Array::OUTPUTTYPE_VEC2): in genVertexSource()
882 case (Array::OUTPUTTYPE_VEC3): in genVertexSource()
888 case (Array::OUTPUTTYPE_VEC4): in genVertexSource()
894 case (Array::OUTPUTTYPE_IVEC2): in genVertexSource()
895 case (Array::OUTPUTTYPE_UVEC2): in genVertexSource()
900 case (Array::OUTPUTTYPE_IVEC3): in genVertexSource()
901 case (Array::OUTPUTTYPE_UVEC3): in genVertexSource()
907 case (Array::OUTPUTTYPE_IVEC4): in genVertexSource()
908 case (Array::OUTPUTTYPE_UVEC4): in genVertexSource()
923 case (Array::OUTPUTTYPE_FLOAT): in genVertexSource()
928 case (Array::OUTPUTTYPE_VEC2): in genVertexSource()
933 case (Array::OUTPUTTYPE_VEC3): in genVertexSource()
938 case (Array::OUTPUTTYPE_VEC4): in genVertexSource()
1002 rr::GenericVecType ContextShaderProgram::mapOutputType (const Array::OutputType& type) in mapOutputType()
1006 case (Array::OUTPUTTYPE_FLOAT): in mapOutputType()
1007 case (Array::OUTPUTTYPE_VEC2): in mapOutputType()
1008 case (Array::OUTPUTTYPE_VEC3): in mapOutputType()
1009 case (Array::OUTPUTTYPE_VEC4): in mapOutputType()
1012 case (Array::OUTPUTTYPE_INT): in mapOutputType()
1013 case (Array::OUTPUTTYPE_IVEC2): in mapOutputType()
1014 case (Array::OUTPUTTYPE_IVEC3): in mapOutputType()
1015 case (Array::OUTPUTTYPE_IVEC4): in mapOutputType()
1018 case (Array::OUTPUTTYPE_UINT): in mapOutputType()
1019 case (Array::OUTPUTTYPE_UVEC2): in mapOutputType()
1020 case (Array::OUTPUTTYPE_UVEC3): in mapOutputType()
1021 case (Array::OUTPUTTYPE_UVEC4): in mapOutputType()
1030 int ContextShaderProgram::getComponentCount (const Array::OutputType& type) in getComponentCount()
1034 case (Array::OUTPUTTYPE_FLOAT): in getComponentCount()
1035 case (Array::OUTPUTTYPE_INT): in getComponentCount()
1036 case (Array::OUTPUTTYPE_UINT): in getComponentCount()
1039 case (Array::OUTPUTTYPE_VEC2): in getComponentCount()
1040 case (Array::OUTPUTTYPE_IVEC2): in getComponentCount()
1041 case (Array::OUTPUTTYPE_UVEC2): in getComponentCount()
1044 case (Array::OUTPUTTYPE_VEC3): in getComponentCount()
1045 case (Array::OUTPUTTYPE_IVEC3): in getComponentCount()
1046 case (Array::OUTPUTTYPE_UVEC3): in getComponentCount()
1049 case (Array::OUTPUTTYPE_VEC4): in getComponentCount()
1050 case (Array::OUTPUTTYPE_IVEC4): in getComponentCount()
1051 case (Array::OUTPUTTYPE_UVEC4): in getComponentCount()
1085 void ContextArrayPack::render (Array::Primitive primitive, int firstVertex, int vertexCount, bool u… in render()
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()
1193 case Array::INPUTTYPE_FLOAT: in toFloat()
1196 case Array::INPUTTYPE_BYTE: in toFloat()
1199 case Array::INPUTTYPE_UNSIGNED_BYTE: in toFloat()
1202 case Array::INPUTTYPE_SHORT: in toFloat()
1205 case Array::INPUTTYPE_UNSIGNED_SHORT: in toFloat()
1208 case Array::INPUTTYPE_FIXED: in toFloat()
1214 case Array::INPUTTYPE_UNSIGNED_INT: in toFloat()
1217 case Array::INPUTTYPE_INT: in toFloat()
1220 case Array::INPUTTYPE_HALF: in toFloat()
1223 case Array::INPUTTYPE_DOUBLE: in toFloat()
1235 … seed, GLValue min, GLValue max, int count, int componentCount, int stride, Array::InputType type);
1236 …eed, int count, int componentCount, int offset, int stride, Array::Primitive primitive, Array::Inp…
1237 …uad (int seed, int count, int componentCount, int stride, Array::Primitive primitive, Array::Inp…
1241 …static char* createQuads (int seed, int count, int componentCount, int offset, int stride, Array:…
1243 …static char* createPerQuads (int seed, int count, int componentCount, int stride, Array::Primitive…
1244 …sPacked (int seed, int count, int componentCount, int offset, int stride, Array::Primitive primiti…
1245 …static void setData (char* data, Array::InputType type, deRandom& rnd, GLValue min, GLValue max…
1248 void RandomArrayGenerator::setData (char* data, Array::InputType type, deRandom& rnd, GLValue min, … in setData()
1252 case Array::INPUTTYPE_FLOAT: in setData()
1258 case Array::INPUTTYPE_DOUBLE: in setData()
1264 case Array::INPUTTYPE_SHORT: in setData()
1270 case Array::INPUTTYPE_UNSIGNED_SHORT: in setData()
1276 case Array::INPUTTYPE_BYTE: in setData()
1282 case Array::INPUTTYPE_UNSIGNED_BYTE: in setData()
1288 case Array::INPUTTYPE_FIXED: in setData()
1294 case Array::INPUTTYPE_INT: in setData()
1300 case Array::INPUTTYPE_UNSIGNED_INT: in setData()
1306 case Array::INPUTTYPE_HALF: in setData()
1318 …t seed, GLValue min, GLValue max, int count, int componentCount, int stride, Array::InputType type) in generateArray()
1326 stride = componentCount * Array::inputTypeSize(type); in generateArray()
1334 …setData(&(data[vertexNdx * stride + Array::inputTypeSize(type) * componentNdx]), type, rnd, min, m… in generateArray()
1341 …eed, int count, int componentCount, int offset, int stride, Array::Primitive primitive, Array::Inp… in generateQuads()
1347 case Array::INPUTTYPE_FLOAT: in generateQuads()
1351 case Array::INPUTTYPE_FIXED: in generateQuads()
1355 case Array::INPUTTYPE_DOUBLE: in generateQuads()
1359 case Array::INPUTTYPE_BYTE: in generateQuads()
1363 case Array::INPUTTYPE_SHORT: in generateQuads()
1367 case Array::INPUTTYPE_UNSIGNED_BYTE: in generateQuads()
1371 case Array::INPUTTYPE_UNSIGNED_SHORT: in generateQuads()
1375 case Array::INPUTTYPE_UNSIGNED_INT: in generateQuads()
1379 case Array::INPUTTYPE_INT: in generateQuads()
1383 case Array::INPUTTYPE_HALF: in generateQuads()
1387 case Array::INPUTTYPE_INT_2_10_10_10: in generateQuads()
1388 case Array::INPUTTYPE_UNSIGNED_INT_2_10_10_10: in generateQuads()
1400 …sPacked (int seed, int count, int componentCount, int offset, int stride, Array::Primitive primiti… in createQuadsPacked()
1411 case Array::PRIMITIVE_TRIANGLES: in createQuadsPacked()
1420 …set + quadStride * (count - 1) + stride * 5 + componentCount * Array::inputTypeSize(Array::INPUTTY… in createQuadsPacked()
1432 case Array::PRIMITIVE_TRIANGLES: in createQuadsPacked()
1479 …teQuads (int seed, int count, int componentCount, int offset, int stride, Array::Primitive primiti… in createQuads()
1491 case Array::PRIMITIVE_TRIANGLES: in createQuads()
1509 case Array::PRIMITIVE_TRIANGLES: in createQuads()
1582 …rQuad (int seed, int count, int componentCount, int stride, Array::Primitive primitive, Array::Inp… in generatePerQuad()
1588 case Array::INPUTTYPE_FLOAT: in generatePerQuad()
1592 case Array::INPUTTYPE_FIXED: in generatePerQuad()
1596 case Array::INPUTTYPE_DOUBLE: in generatePerQuad()
1600 case Array::INPUTTYPE_BYTE: in generatePerQuad()
1604 case Array::INPUTTYPE_SHORT: in generatePerQuad()
1608 case Array::INPUTTYPE_UNSIGNED_BYTE: in generatePerQuad()
1612 case Array::INPUTTYPE_UNSIGNED_SHORT: in generatePerQuad()
1616 case Array::INPUTTYPE_UNSIGNED_INT: in generatePerQuad()
1620 case Array::INPUTTYPE_INT: in generatePerQuad()
1624 case Array::INPUTTYPE_HALF: in generatePerQuad()
1637 …tor::createPerQuads (int seed, int count, int componentCount, int stride, Array::Primitive primiti… in createPerQuads()
1651 case Array::PRIMITIVE_TRIANGLES: in createPerQuads()
1836 …st::Spec::ArraySpec::ArraySpec(Array::InputType inputType_, Array::OutputType outputType_, Array::… in ArraySpec()
1862 << Array::storageToString(array.storage) << "_" in getName()
1865 << Array::inputTypeToString((Array::InputType)array.inputType); in getName()
1866 …if (array.inputType != Array::INPUTTYPE_UNSIGNED_INT_2_10_10_10 && array.inputType != Array::INPUT… in getName()
1871 << Array::outputTypeToString(array.outputType) << "_" in getName()
1872 << Array::usageTypeToString(array.usage) << "_"; in getName()
1880 case Array::PRIMITIVE_TRIANGLES: in getName()
1883 case Array::PRIMITIVE_POINTS: in getName()
1907 << "Storage in " << Array::storageToString(array.storage) << ", " in getDesc()
1909 << "input datatype " << Array::inputTypeToString((Array::InputType)array.inputType) << ", " in getDesc()
1912 << "used as " << Array::outputTypeToString(array.outputType) << ", "; in getDesc()
1922 case Array::PRIMITIVE_TRIANGLES: in getDesc()
1925 case Array::PRIMITIVE_POINTS: in getDesc()
1953 …const size_t primitiveSize = (m_spec.primitive == Array::PRIMITIVE_TRIANGLES) ? (6) : (1); // in … in iterate()
1966 if (arraySpec.inputType == Array::INPUTTYPE_UNSIGNED_INT_2_10_10_10) in iterate()
1973 else if (arraySpec.inputType == Array::INPUTTYPE_INT_2_10_10_10) in iterate()
1983 …if (arraySpec.outputType == Array::OUTPUTTYPE_VEC3 || arraySpec.outputType == Array::OUTPUTTYPE_VE… in iterate()
1984 …|| arraySpec.outputType == Array::OUTPUTTYPE_IVEC3 || arraySpec.outputType == Array::OUTPUTTYPE_IV… in iterate()
1985 …|| arraySpec.outputType == Array::OUTPUTTYPE_UVEC3 || arraySpec.outputType == Array::OUTPUTTYPE_UV… in iterate()
1995 if (arraySpec.outputType == Array::OUTPUTTYPE_VEC4) in iterate()
2006 …const size_t stride = (arraySpec.stride == 0) ? (arraySpec.componentCount * Array::inputTypeSize… in iterate()
2007 …de * (m_spec.drawCount * primitiveSize - 1) + arraySpec.componentCount * Array::inputTypeSize(arr… in iterate()
2016 case Array::PRIMITIVE_TRIANGLES: in iterate()
2036 …m_glArrayPack->getArray(arrayNdx)->data(Array::TARGET_ARRAY, (int)bufferSize, data, arraySpec.usag… in iterate()
2037 …m_rrArrayPack->getArray(arrayNdx)->data(Array::TARGET_ARRAY, (int)bufferSize, data, arraySpec.usag… in iterate()
2103 if (m_spec.arrays[i].storage == Array::STORAGE_BUFFER) in isUnalignedBufferOffsetTest()
2105 …cked = m_spec.arrays[i].inputType == Array::INPUTTYPE_UNSIGNED_INT_2_10_10_10 || m_spec.arrays[i].… in isUnalignedBufferOffsetTest()
2107 int dataTypeSize = Array::inputTypeSize(m_spec.arrays[i].inputType); in isUnalignedBufferOffsetTest()
2124 if (m_spec.arrays[i].storage == Array::STORAGE_BUFFER) in isUnalignedBufferStrideTest()
2126 …cked = m_spec.arrays[i].inputType == Array::INPUTTYPE_UNSIGNED_INT_2_10_10_10 || m_spec.arrays[i].… in isUnalignedBufferStrideTest()
2128 int dataTypeSize = Array::inputTypeSize(m_spec.arrays[i].inputType); in isUnalignedBufferStrideTest()