Lines Matching defs:offset
917 void setupArray (bool bound, int offset, int size, DrawTestSpec::InputType inType, DrawTestSpec::OutputType outType, bool normalized, int stride, int instanceDivisor, const rr::GenericVec4& defaultAttrib, bool isPositionAttr, bool bgraComponentOrder);
1015 void AttributeArray::setupArray (bool bound, int offset, int size, DrawTestSpec::InputType inputType, DrawTestSpec::OutputType outType, bool normalized, int stride, int instanceDivisor, const rr::GenericVec4& defaultAttrib, bool isPositionAttr, bool bgraComponentOrder)
1023 m_offset = offset;
1533 static char* generateArray (int seed, int elementCount, int componentCount, int offset, int stride, DrawTestSpec::InputType type);
1534 static char* generateIndices (int seed, int elementCount, DrawTestSpec::IndexType type, int offset, int min, int max, int indexBase);
1539 static char* createIndices (int seed, int elementCount, int offset, int min, int max, int indexBase);
1541 static char* generateBasicArray (int seed, int elementCount, int componentCount, int offset, int stride, DrawTestSpec::InputType type);
1543 static char* createBasicArray (int seed, int elementCount, int componentCount, int offset, int stride);
1544 static char* generatePackedArray (int seed, int elementCount, int componentCount, int offset, int stride);
1547 char* RandomArrayGenerator::generateArray (int seed, int elementCount, int componentCount, int offset, int stride, DrawTestSpec::InputType type)
1550 return generatePackedArray(seed, elementCount, componentCount, offset, stride);
1552 return generateBasicArray(seed, elementCount, componentCount, offset, stride, type);
1555 char* RandomArrayGenerator::generateBasicArray (int seed, int elementCount, int componentCount, int offset, int stride, DrawTestSpec::InputType type)
1559 case DrawTestSpec::INPUTTYPE_FLOAT: return createBasicArray<float, GLValue::Float> (seed, elementCount, componentCount, offset, stride);
1560 case DrawTestSpec::INPUTTYPE_DOUBLE: return createBasicArray<double, GLValue::Double>(seed, elementCount, componentCount, offset, stride);
1561 case DrawTestSpec::INPUTTYPE_SHORT: return createBasicArray<deInt16, GLValue::Short> (seed, elementCount, componentCount, offset, stride);
1562 case DrawTestSpec::INPUTTYPE_UNSIGNED_SHORT: return createBasicArray<deUint16, GLValue::Ushort>(seed, elementCount, componentCount, offset, stride);
1563 case DrawTestSpec::INPUTTYPE_BYTE: return createBasicArray<deInt8, GLValue::Byte> (seed, elementCount, componentCount, offset, stride);
1564 case DrawTestSpec::INPUTTYPE_UNSIGNED_BYTE: return createBasicArray<deUint8, GLValue::Ubyte> (seed, elementCount, componentCount, offset, stride);
1565 case DrawTestSpec::INPUTTYPE_FIXED: return createBasicArray<deInt32, GLValue::Fixed> (seed, elementCount, componentCount, offset, stride);
1566 case DrawTestSpec::INPUTTYPE_INT: return createBasicArray<deInt32, GLValue::Int> (seed, elementCount, componentCount, offset, stride);
1567 case DrawTestSpec::INPUTTYPE_UNSIGNED_INT: return createBasicArray<deUint32, GLValue::Uint> (seed, elementCount, componentCount, offset, stride);
1568 case DrawTestSpec::INPUTTYPE_HALF: return createBasicArray<deFloat16, GLValue::Half> (seed, elementCount, componentCount, offset, stride);
1587 char* RandomArrayGenerator::createBasicArray (int seed, int elementCount, int componentCount, int offset, int stride)
1596 const size_t bufferSize = offset + (elementCount - 1) * stride + elementSize;
1599 char* writePtr = data + offset;
1638 char* RandomArrayGenerator::generatePackedArray (int seed, int elementCount, int componentCount, int offset, int stride)
1646 const size_t bufferSize = offset + (elementCount - 1) * stride + elementSize;
1649 char* writePtr = data + offset;
1669 char* RandomArrayGenerator::generateIndices (int seed, int elementCount, DrawTestSpec::IndexType type, int offset, int min, int max, int indexBase)
1676 data = createIndices<deUint8>(seed, elementCount, offset, min, max, indexBase);
1680 data = createIndices<deUint16>(seed, elementCount, offset, min, max, indexBase);
1684 data = createIndices<deUint32>(seed, elementCount, offset, min, max, indexBase);
1696 char* RandomArrayGenerator::createIndices (int seed, int elementCount, int offset, int min, int max, int indexBase)
1699 const size_t bufferSize = offset + elementCount * elementSize;
1702 char* writePtr = data + offset;
1983 // index offset must be converted to firstIndex by dividing with the index element size
2061 DrawTestSpec::AttributeSpec DrawTestSpec::AttributeSpec::createAttributeArray (InputType inputType, OutputType outputType, Storage storage, Usage usage, int componentCount, int offset, int stride, bool normalize, int instanceDivisor)
2070 spec.offset = offset;
2092 spec.offset = 0;
2109 offset = 0;
2126 return 1 * int(inputType) + 2 * int(outputType) + 3 * int(storage) + 5 * int(usage) + 7 * componentCount + 11 * offset + 13 * stride + 17 * (normalize ? 0 : 1) + 19 * instanceDivisor;
2225 // Buffer alignment, offset is a multiple of underlying data type size?
2232 if (offset % dataTypeSize != 0)
2243 // Buffer alignment, offset is a multiple of underlying data type size?
2469 << attrib.offset << "_"
2487 << "offset" << indexPointerOffset << "_";
2589 << "index offset " << indexPointerOffset << ", ";
2597 << "index offset " << indexPointerOffset << ", "
2607 << "index offset " << indexPointerOffset << ", "
2616 << "indirect offset " << indirectOffset << ", ";
2624 << "index offset " << indexPointerOffset << ", "
2626 << "indirect offset " << indirectOffset << ", "
2726 << "\tindex offset " << indexPointerOffset << "\n";
2734 << "\tindex offset " << indexPointerOffset << "\n"
2744 << "\tindex offset " << indexPointerOffset << "\n"
2753 << "\tindirect offset " << indirectOffset << "\n";
2761 << "\tindex offset " << indexPointerOffset << "\n"
2763 << "\tindirect offset " << indirectOffset << "\n"
2772 << "\tindex offset " << indexPointerOffset << "\n"
2781 << "\tindex offset " << indexPointerOffset << "\n"
2791 << "\tindex offset " << indexPointerOffset << "\n"
2931 // Indirect offset alignment
2942 // index offset must be convertable to firstIndex
2998 // \note combination bad alignment & stride is treated as bad offset
3250 const size_t bufferSize = attribSpec.offset + stride * (referencedElementCount - 1) + elementSize;
3251 const char* data = RandomArrayGenerator::generateArray(seed, (int)referencedElementCount, attribSpec.componentCount, attribSpec.offset, (int)stride, attribSpec.inputType);
3261 m_glArrayPack->getArray(attribNdx)->setupArray(true, attribSpec.offset, attribSpec.componentCount, attribSpec.inputType, attribSpec.outputType, attribSpec.normalize, attribSpec.stride, attribSpec.instanceDivisor, nullAttribValue, isPositionAttr, attribSpec.bgraComponentOrder);
3262 m_rrArrayPack->getArray(attribNdx)->setupArray(true, attribSpec.offset, attribSpec.componentCount, attribSpec.inputType, attribSpec.outputType, attribSpec.normalize, attribSpec.stride, attribSpec.instanceDivisor, nullAttribValue, isPositionAttr, attribSpec.bgraComponentOrder);