Home
last modified time | relevance | path

Searched refs:elementSize (Results 1 – 25 of 35) sorted by relevance

12

/external/mesa3d/src/glx/
Dpixel.c176 GLint components, elementSize, rowSize, padding, groupsPerRow, groupSize; in __glFillImage() local
199 elementSize = __glBytesPerElement(type); in __glFillImage()
200 groupSize = elementSize * components; in __glFillImage()
201 if (elementSize == 1) in __glFillImage()
222 for (k = 1; k <= elementSize; k++) { in __glFillImage()
223 iter2[k - 1] = iterc[elementSize - k]; in __glFillImage()
225 iter2 += elementSize; in __glFillImage()
226 iterc += elementSize; in __glFillImage()
236 if (rowSize == elementsPerRow * elementSize) { in __glFillImage()
239 elementsPerRow * elementSize * height); in __glFillImage()
[all …]
/external/libmojo/mojo/public/js/
Dvalidator.js187 offset, elementSize, elementType, nullable, expectedDimensionSizes, argument
197 return this.validateArray(arrayOffset, elementSize, elementType,
303 function (offset, elementSize, elementType, expectedDimensionSizes, argument
317 Math.ceil(numElements / 8) : (elementSize * numElements);
360 var elementSize = codec.Handle.encodedSize;
362 var elementOffset = offset + i * elementSize;
372 var elementSize = codec.Interface.encodedSize;
374 var elementOffset = offset + i * elementSize;
386 var elementSize = codec.PointerTo.prototype.encodedSize;
388 var elementOffset = offset + i * elementSize;
[all …]
/external/dng_sdk/source/
Ddng_memory.cpp46 dng_memory_data::dng_memory_data (uint32 count, std::size_t elementSize) in dng_memory_data() argument
52 Allocate (count, elementSize); in dng_memory_data()
90 void dng_memory_data::Allocate (uint32 count, std::size_t elementSize) in Allocate() argument
94 const uint32 elementSizeAsUint32 = static_cast<uint32> (elementSize); in Allocate()
95 if (static_cast<std::size_t> (elementSizeAsUint32) != elementSize) in Allocate()
Ddng_memory.h66 dng_memory_data (uint32 count, std::size_t elementSize);
86 void Allocate (uint32 count, std::size_t elementSize);
/external/skia/src/gpu/vk/
DGrVkVaryingHandler.cpp73 int elementSize = grsltype_to_location_size(var.getType()); in finalize_helper() local
74 SkASSERT(elementSize > 0); in finalize_helper()
80 locationIndex += elementSize * numElements; in finalize_helper()
DGrVkUniformHandler.cpp131 uint32_t elementSize = SkTMax<uint32_t>(16, grsltype_to_vk_size(type)); in get_ubo_aligned_offset() local
132 SkASSERT(0 == (elementSize & 0xF)); in get_ubo_aligned_offset()
133 *currentOffset = *uniformOffset + elementSize * arrayCount; in get_ubo_aligned_offset()
/external/deqp/framework/delibs/depool/
DdePoolArray.c43 dePoolArray* dePoolArray_create (deMemPool* pool, int elementSize) in dePoolArray_create() argument
53 arr->elementSize = elementSize; in dePoolArray_create()
100 int pageAllocSize = arr->elementSize << DE_ARRAY_ELEMENTS_PER_PAGE_LOG2; in dePoolArray_reserve()
DdePoolArray.h42 int elementSize; /*!< Size of the element (in bytes). */ member
52 dePoolArray* dePoolArray_create (deMemPool* pool, int elementSize);
98 int elementSize; \
/external/deqp/framework/opengl/
DgluDrawUtil.cpp278 const int elementSize = getVtxCompSize(va.pointer.componentType)*va.pointer.numComponents; in appendAttributeNonStrided() local
279 const int size = elementSize*va.pointer.numElements; in appendAttributeNonStrided()
307 const int elementSize = getVtxCompSize(dstVA.componentType)*dstVA.numComponents; in copyToLayout() local
308 const bool srcHasCustomStride = srcPtr.stride != 0 && srcPtr.stride != elementSize; in copyToLayout()
309 const bool dstHasCustomStride = dstVA.stride != 0 && dstVA.stride != elementSize; in copyToLayout()
313 const int dstStride = dstVA.stride != 0 ? dstVA.stride : elementSize; in copyToLayout()
314 const int srcStride = srcPtr.stride != 0 ? srcPtr.stride : elementSize; in copyToLayout()
317 …deUintptr)dstVA.pointer + ndx*dstStride, (const deUint8*)srcPtr.data + ndx*srcStride, elementSize); in copyToLayout()
320 …deMemcpy((deUint8*)dstBasePtr + (deUintptr)dstVA.pointer, srcPtr.data, elementSize*dstVA.numElemen… in copyToLayout()
/external/swiftshader/src/OpenGL/libGLES_CM/
DVertexDataManager.cpp65 int elementSize = attribute.typeSize(); in writeAttributeData() local
96 if(inputStride == elementSize) in writeAttributeData()
104 memcpy(output, input, elementSize); in writeAttributeData()
105 output += elementSize; in writeAttributeData()
Dutilities.cpp478 sw::DrawType elementSize; in ConvertPrimitiveType() local
481 case GL_NONE: elementSize = sw::DRAW_NONINDEXED; break; in ConvertPrimitiveType()
482 case GL_UNSIGNED_BYTE: elementSize = sw::DRAW_INDEXED8; break; in ConvertPrimitiveType()
483 case GL_UNSIGNED_SHORT: elementSize = sw::DRAW_INDEXED16; break; in ConvertPrimitiveType()
484 case GL_UNSIGNED_INT: elementSize = sw::DRAW_INDEXED32; break; in ConvertPrimitiveType()
488 drawType = sw::DrawType(drawType | elementSize); in ConvertPrimitiveType()
/external/swiftshader/src/OpenGL/libGL/
DVertexDataManager.cpp64 int elementSize = attribute.typeSize(); in writeAttributeData() local
95 if(inputStride == elementSize) in writeAttributeData()
103 memcpy(output, input, elementSize); in writeAttributeData()
104 output += elementSize; in writeAttributeData()
/external/swiftshader/src/OpenGL/libGLESv2/
DVertexDataManager.cpp64 int elementSize = attribute.typeSize(); in writeAttributeData() local
93 if(inputStride == elementSize) in writeAttributeData()
101 memcpy(output, input, elementSize); in writeAttributeData()
102 output += elementSize; in writeAttributeData()
Dutilities.cpp1513 sw::DrawType elementSize; in ConvertPrimitiveType() local
1516 case GL_NONE: elementSize = sw::DRAW_NONINDEXED; break; in ConvertPrimitiveType()
1517 case GL_UNSIGNED_BYTE: elementSize = sw::DRAW_INDEXED8; break; in ConvertPrimitiveType()
1518 case GL_UNSIGNED_SHORT: elementSize = sw::DRAW_INDEXED16; break; in ConvertPrimitiveType()
1519 case GL_UNSIGNED_INT: elementSize = sw::DRAW_INDEXED32; break; in ConvertPrimitiveType()
1523 drawType = sw::DrawType(drawType | elementSize); in ConvertPrimitiveType()
/external/skia/src/core/
DSkValidatingReadBuffer.cpp198 bool SkValidatingReadBuffer::readArray(void* value, size_t size, size_t elementSize) { in readArray() argument
202 const uint64_t byteLength64 = sk_64_mul(count, elementSize); in readArray()
203 const size_t byteLength = count * elementSize; in readArray()
DSkValidatingReadBuffer.h74 bool readArray(void* value, size_t size, size_t elementSize);
DSkReadBuffer.cpp184 bool SkReadBuffer::readArray(void* value, size_t size, size_t elementSize) { in readArray() argument
188 const size_t byteLength = count * elementSize; in readArray()
DSkReadBuffer.h249 bool readArray(void* value, size_t size, size_t elementSize);
/external/clang/include/clang/AST/
DCharUnits.h197 CharUnits alignmentOfArrayElement(CharUnits elementSize) const { in alignmentOfArrayElement() argument
201 return alignmentAtOffset(elementSize); in alignmentOfArrayElement()
/external/r8/src/main/java/com/android/tools/r8/ir/optimize/
DCodeRewriter.java976 NewArrayEmpty newArray, int size, BasicBlock block, int elementSize) { in computeArrayFilledData() argument
981 if (elementSize == 1) { in computeArrayFilledData()
992 assert elementSize == 2 || elementSize == 4 || elementSize == 8; in computeArrayFilledData() local
993 int shortsPerConstant = elementSize / 2; in computeArrayFilledData()
1096 int elementSize = newArray.type.elementSizeForPrimitiveArrayType();
1097 short[] contents = computeArrayFilledData(newArray, size, block, elementSize);
1104 newArray.outValue(), elementSize, arraySize, contents);
/external/deqp/external/vulkancts/framework/vulkan/
DvkNullDriver.cpp938 const deUint32 elementSize = desc.planes[planeNdx].elementSizeBytes; in getYCbCrImageDataSize() local
940 totalSize = (VkDeviceSize)deAlign64((deInt64)totalSize, elementSize); in getYCbCrImageDataSize()
941 totalSize += planeW * planeH * elementSize; in getYCbCrImageDataSize()
978 const deUint32 elementSize = formatDesc.planes[planeNdx].elementSizeBytes; in getImageMemoryRequirements2KHR() local
982 pMemoryRequirements->memoryRequirements.size = planeW * planeH * elementSize; in getImageMemoryRequirements2KHR()
/external/deqp/framework/delibs/decpp/
DdePoolArray.hpp324 deUintptr elementSize = (deUintptr)deAlignPtr((void*)(deUintptr)sizeof(T), Alignment); in reserve() local
325 deUintptr pageAllocSize = elementSize << ELEMENTS_PER_PAGE_LOG2; in reserve()
/external/libmojo/mojo/public/java/bindings/src/org/chromium/mojo/bindings/
DDecoder.java728 private DataHeader readDataHeaderForArray(long elementSize, int expectedLength) { in readDataHeaderForArray() argument
731 < (DataHeader.HEADER_SIZE + elementSize * dataHeader.elementsOrVersion)) { in readDataHeaderForArray()
/external/deqp/modules/glshared/
DglsDrawTest.cpp1575 const size_t elementSize = componentSize * componentCount; in createBasicArray() local
1576 const size_t bufferSize = offset + (elementCount - 1) * stride + elementSize; in createBasicArray()
1625 const size_t elementSize = 4; in generatePackedArray() local
1626 const size_t bufferSize = offset + (elementCount - 1) * stride + elementSize; in generatePackedArray()
1678 const size_t elementSize = sizeof(T); in createIndices() local
1679 const size_t bufferSize = offset + elementCount * elementSize; in createIndices()
1717 alignmentSafeAssignment<T>(writePtr + elementSize * elementNdx, T(ndx)); in createIndices()
3210 …const size_t elementSize = attribSpec.componentCount * DrawTestSpec::inputTypeSize(attribSpe… in iterate() local
3211 const size_t stride = (attribSpec.stride == 0) ? (elementSize) : (attribSpec.stride); in iterate()
3214 … size_t bufferSize = attribSpec.offset + stride * (referencedElementCount - 1) + elementSize; in iterate()
/external/deqp/external/vulkancts/modules/vulkan/shaderexecutor/
DvktShaderExecutor.cpp650 int elementSize = 0; in bindAttributes() local
654 elementSize = sizeof(float); in bindAttributes()
656 elementSize = sizeof(int); in bindAttributes()
658 elementSize = sizeof(deUint32); in bindAttributes()
664 elementSize = numRows * numCols * (int)sizeof(float); in bindAttributes()
673 …addAttribute((deUint32)m_vertexBindingDescriptions.size(), format, elementSize * vecSize, numValue… in bindAttributes()

12