/third_party/mesa3d/src/glx/ |
D | pixel.c | 176 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 …]
|
/third_party/skia/third_party/externals/dng_sdk/source/ |
D | dng_memory.cpp | 46 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()
|
D | dng_memory.h | 66 dng_memory_data (uint32 count, std::size_t elementSize); 86 void Allocate (uint32 count, std::size_t elementSize);
|
/third_party/node/lib/internal/crypto/ |
D | random.js | 70 function assertOffset(offset, elementSize, length) { argument 72 offset *= elementSize; 82 function assertSize(size, elementSize, offset, length) { argument 84 size *= elementSize; 126 const elementSize = buf.BYTES_PER_ELEMENT || 1; 128 offset = assertOffset(offset, elementSize, buf.byteLength); 133 size = assertSize(size, elementSize, offset, buf.byteLength); 160 const elementSize = buf.BYTES_PER_ELEMENT || 1; 174 offset = assertOffset(offset, elementSize, buf.byteLength); 179 size = assertSize(size, elementSize, offset, buf.byteLength);
|
/third_party/skia/src/gpu/vk/ |
D | GrVkVaryingHandler.cpp | 83 int elementSize = grsltype_to_location_size(var.getType()); in finalize_helper() local 84 SkASSERT(elementSize > 0); in finalize_helper() 87 locationIndex += elementSize * numElements; in finalize_helper()
|
D | GrVkUniformHandler.cpp | 181 uint32_t elementSize = std::max<uint32_t>(16, grsltype_to_vk_size(type, layout)); in get_aligned_offset() local 182 SkASSERT(0 == (elementSize & 0xF)); in get_aligned_offset() 183 *currentOffset = uniformOffset + elementSize * arrayCount; in get_aligned_offset()
|
/third_party/skia/src/gpu/ |
D | GrSPIRVVaryingHandler.cpp | 89 int elementSize = grsltype_to_location_size(var.getType()); in finalize_helper() local 90 SkASSERT(elementSize > 0); in finalize_helper() 93 locationIndex += elementSize * numElements; in finalize_helper()
|
D | GrSPIRVUniformHandler.cpp | 177 uint32_t elementSize = std::max<uint32_t>(16, grsltype_to_size(type)); in get_ubo_offset() local 178 SkASSERT(0 == (elementSize & 0xF)); in get_ubo_offset() 179 *currentOffset = uniformOffset + elementSize * arrayCount; in get_ubo_offset()
|
/third_party/vk-gl-cts/framework/delibs/depool/ |
D | dePoolArray.c | 43 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()
|
D | dePoolArray.h | 42 int elementSize; /*!< Size of the element (in bytes). */ member 52 dePoolArray* dePoolArray_create (deMemPool* pool, int elementSize); 98 int elementSize; \
|
/third_party/vk-gl-cts/framework/opengl/ |
D | gluDrawUtil.cpp | 278 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()
|
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/vulkan/ |
D | ProgramVk.cpp | 81 const int elementSize = sizeof(T) * componentCount; in UpdateDefaultUniformBlock() local 84 if (layoutInfo.arrayStride == 0 || layoutInfo.arrayStride == elementSize) in UpdateDefaultUniformBlock() 88 ASSERT(writePtr + (elementSize * count) <= uniformData->data() + uniformData->size()); in UpdateDefaultUniformBlock() 89 memcpy(writePtr, v, elementSize * count); in UpdateDefaultUniformBlock() 101 ASSERT(writePtr + elementSize <= uniformData->data() + uniformData->size()); in UpdateDefaultUniformBlock() 102 memcpy(writePtr, readPtr, elementSize); in UpdateDefaultUniformBlock() 116 const int elementSize = sizeof(T) * componentCount; in ReadFromDefaultUniformBlock() local 119 if (layoutInfo.arrayStride == 0 || layoutInfo.arrayStride == elementSize) in ReadFromDefaultUniformBlock() 122 memcpy(dst, readPtr, elementSize); in ReadFromDefaultUniformBlock() 129 memcpy(dst, readPtr, elementSize); in ReadFromDefaultUniformBlock()
|
/third_party/skia/third_party/externals/swiftshader/src/OpenGL/libGLESv2/ |
D | VertexDataManager.cpp | 64 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()
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/query_pool/ |
D | vktQueryPoolOcclusionTests.cpp | 563 …const vk::VkDeviceSize elementSize = m_testVector.queryResultSize == RESULT_SIZE_32_BIT ? size… in OcclusionQueryTestInstance() local 565 … ? (elementSize + elementSize * m_testVector.queryResultsAvailability) * numQueriesinPool in OcclusionQueryTestInstance() 868 …const vk::VkDeviceSize elementSize = m_testVector.queryResultSize == RESULT_SIZE_32_BIT ? sizeof(d… in recordRender() local 869 …const vk::VkDeviceSize strideSize = elementSize + elementSize * m_testVector.queryResultsAvailabil… in recordRender() 906 …const vk::VkDeviceSize elementSize = m_testVector.queryResultSize == RESULT_SIZE_32_BIT ? sizeof(d… in recordCopyResults() local 907 …const vk::VkDeviceSize strideSize = elementSize + elementSize * m_testVector.queryResultsAvailabil… in recordCopyResults() 926 …const vk::VkDeviceSize elementSize = m_testVector.queryResultSize == RESULT_SIZE_32_BIT ? sizeof… in captureResults() local 928 ? elementSize + elementSize * m_testVector.queryResultsAvailability in captureResults() 1407 …const vk::VkDeviceSize elementSize = (testVector.queryResultsAvailability ? resultSize * 2 : resu… in init() local 1409 if (elementSize > testVector.queryResultsStride && strides[strideIdx] != 0) in init()
|
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/d3d9/ |
D | VertexBuffer9.cpp | 73 size_t elementSize = gl::ComputeVertexAttributeTypeSize(attrib); in storeVertexAttributes() local 99 if (!needsConversion && inputStride == elementSize) in storeVertexAttributes()
|
/third_party/node/deps/v8/src/builtins/ |
D | wasm.tq | 317 rtt: Map, length: uint32, elementSize: uint32, 319 // instanceSize = RoundUp(elementSize * length, kObjectAlignment) 323 Convert<intptr>(length) * Convert<intptr>(elementSize)) + 335 rtt: Map, length: uint32, elementSize: uint32): HeapObject { 337 rtt, length, elementSize, InitializationMode::kUninitialized); 341 rtt: Map, length: uint32, elementSize: uint32): HeapObject { 343 rtt, length, elementSize, InitializationMode::kInitializeToZero); 347 rtt: Map, length: uint32, elementSize: uint32): HeapObject { 349 rtt, length, elementSize, InitializationMode::kInitializeToNull);
|
D | typed-array-subarray.tq | 52 // 14. Let elementSize be the Number value of the Element Size value 59 // 16. Let beginByteOffset be srcByteOffset + beginIndex × elementSize.
|
D | typed-array-createtypedarray.tq | 236 // 5. Let elementSize be the Number value of the Element Size value in Table 244 // 7. If offset modulo elementSize ≠ 0, throw a RangeError exception. 270 // a. If bufferByteLength modulo elementSize ≠ 0, throw a RangeError 288 // a. Let newByteLength be newLength × elementSize. 402 // 5. Let elementSize be the Number value of the Element Size value in Table 409 // 5. Let elementSize be the Number value of the Element Size value in Table
|
D | data-view.tq | 417 // 10. Let elementSize be the Element Size value specified in Table 62 419 const elementSize: uintptr = DataViewElementSize(kind); 421 // 11. If getIndex + elementSize > viewSize, throw a RangeError exception. 422 CheckIntegerIndexAdditionOverflow(getIndex, elementSize, viewSize) 736 // 13. Let elementSize be the Element Size value specified in Table 62 738 const elementSize: uintptr = DataViewElementSize(kind); 740 // 14. If getIndex + elementSize > viewSize, throw a RangeError exception. 741 CheckIntegerIndexAdditionOverflow(getIndex, elementSize, viewSize)
|
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/ |
D | VertexDataManager.cpp | 64 angle::CheckedNumeric<size_t> elementSize = ComputeVertexAttributeTypeSize(attrib); in ElementsInBuffer() local 66 auto elementsInBuffer = (bufferSize - (offset % stride) + (stride - elementSize)) / stride; in ElementsInBuffer() 113 unsigned int elementSize = 0; in DirectStoragePossible() local 115 factory->getVertexSpaceRequired(context, attrib, binding, 1, 0, 0, &elementSize); in DirectStoragePossible() 117 alignment = std::min<size_t>(elementSize, 4); in DirectStoragePossible()
|
/third_party/node/lib/internal/webstreams/ |
D | readablestream.js | 1859 elementSize, 1863 assert(!(bytesFilled % elementSize)); 1865 return new ctor(transferredBuffer, byteOffset, bytesFilled / elementSize); 2515 let elementSize = 1; 2518 elementSize = view.constructor.BYTES_PER_ELEMENT; 2539 elementSize, property 2803 elementSize, 2805 const currentAlignedBytes = bytesFilled - (bytesFilled % elementSize); 2810 const maxAlignedBytes = maxBytesFilled - (maxBytesFilled % elementSize); 2856 assert(desc.bytesFilled < elementSize); [all …]
|
/third_party/vk-gl-cts/external/openglcts/modules/common/ |
D | glcPackedPixelsTests.cpp | 569 int elementSize; // size of an element (in bytes) member 1212 int elementSize = m_inputType.size; in makeGradient() local 1217 if (elementSize < m_unpackProperties.alignment) in makeGradient() 1220 …elementsInRow = (int)(alignment * deFloatCeil(elementSize * elementsInGroup * rowLength / ((float)… in makeGradient() 1221 elementSize; in makeGradient() 1234 m_unpackProperties.elementSize = elementSize; in makeGradient() 1240 std::size_t bufferSize = elementSize * elementsInRow * rowCount * depth; in makeGradient() 2173 props.elementSize = outputType.size; in readOutputData() 2190 if (props.elementSize < props.alignment) in readOutputData() 2192 …props.elementsInRow = (int)(props.alignment * deFloatCeil(props.elementSize * props.elementsInGrou… in readOutputData() [all …]
|
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/metal/ |
D | ProgramMtl.mm | 113 const int elementSize = sizeof(T) * componentCount; 116 if (layoutInfo.arrayStride == 0 || layoutInfo.arrayStride == elementSize) 120 ASSERT(writePtr + (elementSize * count) <= uniformData->data() + uniformData->size()); 121 memcpy(writePtr, v, elementSize * count); 133 ASSERT(writePtr + elementSize <= uniformData->data() + uniformData->size()); 134 memcpy(writePtr, readPtr, elementSize); 148 const int elementSize = sizeof(T) * componentCount; 151 if (layoutInfo.arrayStride == 0 || layoutInfo.arrayStride == elementSize) 154 memcpy(dst, readPtr, elementSize); 161 memcpy(dst, readPtr, elementSize);
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/shaderexecutor/ |
D | vktShaderFConvertTests.cpp | 330 const size_t elementSize = sizeof(typename T::StorageType); in calculate() local 332 const size_t vectorSize = elementSize * effectiveLength; in calculate() 374 const size_t elementSize = sizeof(typename T::StorageType); in unpackFloats() local 375 const size_t vectorSize = elementSize * effectiveLength; in unpackFloats()
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/robustness/ |
D | vktRobustBufferAccessWithVariablePointersTests.cpp | 1610 const deUint32 elementSize = ((isR64 && !splitAccess) ? 8u : 4u); in verifyResult() local 1612 …eSize offsetInBytes = 0; offsetInBytes < m_outBufferAccess.allocSize; offsetInBytes += elementSize) in verifyResult() 1615 …const size_t outValueSize = static_cast<size_t>(deMinu64(elementSize, (m_outBufferAccess.allocSiz… in verifyResult() 1671 …allyOutOfBounds = ((distanceToOutOfBounds > 0) && ((deUint32)distanceToOutOfBounds < elementSize)); in verifyResult() 1685 if (offsetInBytes + elementSize > m_inBufferAccess.allocSize) in verifyResult() 1738 && (offsetInBytes / elementSize + 1) % 4 == 0); in verifyResult() 1743 matchesVec4Pattern = verifyOutOfBoundsVec4(outValuePtr - 3u * elementSize, m_bufferFormat); in verifyResult() 1770 if (!isExpectedValueFromInBuffer(offsetInBytes, outValuePtr, elementSize)) in verifyResult() 1779 … if (!isValueWithinBufferOrZero(inDataPtr, m_inBufferAccess.accessRange, outValuePtr, elementSize)) in verifyResult()
|