/third_party/vk-gl-cts/external/openglcts/modules/glesext/draw_buffers_indexed/ |
D | esextcDrawBuffersIndexedBlending.cpp | 137 int numComponents = NumComponents(format); in iterate() local 141 static_cast<unsigned int>((numComponents >= 2 ? colors[0].y() : 0.0f) * 255), in iterate() 142 static_cast<unsigned int>((numComponents >= 3 ? colors[0].z() : 0.0f) * 255), in iterate() 143 static_cast<unsigned int>((numComponents == 4 ? background.w() : 1.0f) * 255)), in iterate() 146 static_cast<unsigned int>((numComponents >= 2 ? background.y() : 0.0f) * 255), in iterate() 147 static_cast<unsigned int>((numComponents >= 3 ? background.z() : 0.0f) * 255), in iterate() 148 static_cast<unsigned int>((numComponents == 4 ? colors[1].w() : 1.0f) * 255)), in iterate() 151 static_cast<unsigned int>((colors[2].x() * (numComponents == 4 ? colors[2].w() : 1.0f) - in iterate() 152 background.x() * (numComponents == 4 ? background.w() : 1.0f)) * in iterate() 154 static_cast<unsigned int>((numComponents >= 2 ? in iterate() [all …]
|
D | esextcDrawBuffersIndexedColorMasks.cpp | 206 int numComponents = NumComponents(format); in iterate() local 221 e = tcu::UVec4(e.x(), numComponents >= 2 ? e.y() : 0, numComponents >= 3 ? e.z() : 0, in iterate() 222 numComponents == 4 ? e.w() : 255); in iterate() 245 e = tcu::UVec4(e.x(), numComponents >= 2 ? e.y() : 0, numComponents >= 3 ? e.z() : 0, in iterate() 246 numComponents == 4 ? e.w() : 1); in iterate() 267 e = tcu::UVec4(e.x(), numComponents >= 2 ? e.y() : 0, numComponents >= 3 ? e.z() : 0, in iterate() 268 numComponents == 4 ? e.w() : 1); in iterate()
|
/third_party/skia/third_party/externals/angle2/src/compiler/translator/ |
D | StructureHLSL.cpp | 148 const int numComponents = gl::VariableComponentCount(glType); in prePadding() local 150 if (numComponents >= 4) in prePadding() 156 mElementIndex = numComponents % 4; in prePadding() 167 if (mElementIndex + numComponents > 4) in prePadding() 173 mElementIndex = numComponents; in prePadding() 179 mElementIndex = numComponents; in prePadding() 184 const int alignment = numComponents == 3 ? 4 : numComponents; in prePadding() 188 mElementIndex += numComponents; in prePadding() 218 const int numComponents = gl::VariableComponentCount(glType); in postPaddingString() local 219 if (isLastElement || (numComponents >= 4)) in postPaddingString() [all …]
|
D | blocklayoutHLSL.cpp | 67 int numComponents = gl::VariableComponentCount(type); in getBlockLayoutInfo() local 68 if ((numComponents + (mCurrentOffset % kComponentsPerRegister)) > kComponentsPerRegister) in getBlockLayoutInfo() 99 const int numComponents = gl::MatrixComponentCount(type, isRowMajorMatrix); in advanceOffset() local 101 mCurrentOffset += numComponents; in advanceOffset()
|
D | blocklayout.h | 66 constexpr size_t ComponentAlignment(size_t numComponents) in ComponentAlignment() argument 68 return (numComponents == 3u ? 4u : numComponents); in ComponentAlignment()
|
/third_party/mesa3d/src/gallium/drivers/swr/rasterizer/common/ |
D | simdintrin.h | 225 template <UINT Attrib, UINT Comp, UINT numComponents = 4> 230 const float* pInterpA = &pInterpBuffer[Attrib * 3 * numComponents + 0 + Comp]; in InterpolateComponent() 231 const float* pInterpB = &pInterpBuffer[Attrib * 3 * numComponents + numComponents + Comp]; in InterpolateComponent() 232 const float* pInterpC = &pInterpBuffer[Attrib * 3 * numComponents + numComponents * 2 + Comp]; in InterpolateComponent() 254 template <UINT Attrib, UINT Comp, UINT numComponents = 4> 257 const float* pInterpA = &pInterpBuffer[Attrib * 3 * numComponents + 0 + Comp]; in InterpolateComponentFlat() 267 template <UINT Attrib, UINT Comp, UINT numComponents = 4> 270 const uint32_t interpA = pInterpBuffer[Attrib * 3 * numComponents + 0 + Comp]; in InterpolateComponentFlatInt() 282 template <UINT Attrib, UINT Comp, UINT numComponents = 4> 287 const float* pInterpA = &pInterpBuffer[Attrib * 3 * numComponents + 0 + Comp]; in InterpolateComponent() [all …]
|
/third_party/vk-gl-cts/modules/glshared/ |
D | glsRandomShaderProgram.cpp | 185 const int numComponents = attribType.getNumElements(); in shadeVertices() local 188 DE_ASSERT(attribType.isFloatOrVec() && de::inRange(numComponents, 1, 4)); in shadeVertices() 197 if (numComponents >= 2) access.component(1).asFloat(ndx) = attribValue[1]; in shadeVertices() 198 if (numComponents >= 3) access.component(2).asFloat(ndx) = attribValue[2]; in shadeVertices() 199 if (numComponents >= 4) access.component(3).asFloat(ndx) = attribValue[3]; in shadeVertices() 226 const int numComponents = varType.getNumElements(); in shadeVertices() local 229 DE_ASSERT(varType.isFloatOrVec() && de::inRange(numComponents, 1, 4)); in shadeVertices() 238 if (numComponents >= 2) dst[1] = access.component(1).asFloat(ndx); in shadeVertices() 239 if (numComponents >= 3) dst[2] = access.component(2).asFloat(ndx); in shadeVertices() 240 if (numComponents >= 4) dst[3] = access.component(3).asFloat(ndx); in shadeVertices() [all …]
|
D | glsLongStressCase.cpp | 994 const int numComponents = glu::getDataTypeScalarSize(attrSpec.type); in generateRandomAttribData() local 1001 dataSizeBytesDst = numComponents*componentSize*numVertices; in generateRandomAttribData() 1010 for (int compNdx = 0; compNdx < numComponents; compNdx++) in generateRandomAttribData() 1011 …data[vtxNdx*numComponents + compNdx] = rnd.getFloat(attrSpec.minValue.f[compNdx], attrSpec.maxValu… in generateRandomAttribData() 1020 for (int compNdx = 0; compNdx < numComponents; compNdx++) in generateRandomAttribData() 1021 …data[vtxNdx*numComponents + compNdx] = rnd.getInt(attrSpec.minValue.i[compNdx], attrSpec.maxValue.… in generateRandomAttribData() 1031 const int numComponents = glu::getDataTypeScalarSize(attrSpec.type); in generateRandomPositionAttribData() local 1032 DE_ASSERT(numComponents >= 2); in generateRandomPositionAttribData() 1035 if (numComponents > 2) in generateRandomPositionAttribData() 1040 data[vtxNdx*numComponents + 2] = -1.0f; in generateRandomPositionAttribData() [all …]
|
/third_party/flutter/skia/third_party/externals/angle2/src/compiler/translator/ |
D | StructureHLSL.cpp | 127 const int numComponents = gl::VariableComponentCount(glType); in prePadding() local 129 if (numComponents >= 4) in prePadding() 136 if (mElementIndex + numComponents > 4) in prePadding() 139 mElementIndex = numComponents; in prePadding() 143 const int alignment = numComponents == 3 ? 4 : numComponents; in prePadding() 148 mElementIndex += numComponents; in prePadding() 175 int numComponents = 0; in postPaddingString() local 189 numComponents = gl::MatrixComponentCount(glType, isRowMajorMatrix); in postPaddingString() 195 numComponents = mStructElementIndexes->find(structName)->second; in postPaddingString() 197 if (numComponents == 0) in postPaddingString() [all …]
|
D | blocklayoutHLSL.cpp | 67 int numComponents = gl::VariableComponentCount(type); in getBlockLayoutInfo() local 68 if ((numComponents + (mCurrentOffset % kComponentsPerRegister)) > kComponentsPerRegister) in getBlockLayoutInfo() 99 const int numComponents = gl::MatrixComponentCount(type, isRowMajorMatrix); in advanceOffset() local 101 mCurrentOffset += numComponents; in advanceOffset()
|
D | blocklayout.h | 69 constexpr size_t ComponentAlignment(size_t numComponents) in ComponentAlignment() argument 71 return (numComponents == 3u ? 4u : numComponents); in ComponentAlignment()
|
/third_party/vk-gl-cts/framework/opengl/ |
D | gluDrawUtil.hpp | 116 int numComponents; //!< Number of components per element. member 125 , numComponents (numComponents_) in VertexArrayPointer() 135 , numComponents (0) in VertexArrayPointer() 246 inline VertexArrayBinding NAME (const std::string& name, int offset, int numComponents, int numElem… 248 …Binding(BindingPoint(name, offset), VertexArrayPointer(TYPE, CONVERT, numComponents, numElements, … 250 inline VertexArrayBinding NAME (const std::string& name, int numComponents, int numElements, int st… 252 return NAME(name, 0, numComponents, numElements, stride, data); \ 254 inline VertexArrayBinding NAME (int location, int numComponents, int numElements, int stride, const… 256 …return VertexArrayBinding(BindingPoint(location), VertexArrayPointer(TYPE, CONVERT, numComponents,…
|
D | gluDrawUtil.cpp | 46 int numComponents; member 61 , numComponents (numComponents_) in VertexAttributeDescriptor() 72 , numComponents (0) in VertexAttributeDescriptor() 278 const int elementSize = getVtxCompSize(va.pointer.componentType)*va.pointer.numComponents; in appendAttributeNonStrided() 287 va.pointer.numComponents, in appendAttributeNonStrided() 304 dstVA.numComponents == srcPtr.numComponents && in copyToLayout() 307 const int elementSize = getVtxCompSize(dstVA.componentType)*dstVA.numComponents; in copyToLayout() 396 vertexArray.pointer.numComponents, in getUserPointerDescriptor() 416 gl.vertexAttribIPointer(va.location, va.numComponents, compTypeGL, va.stride, va.pointer); in setVertexAttribPointer() 418 …gl.vertexAttribPointer(va.location, va.numComponents, compTypeGL, va.convert == VTX_COMP_CONVERT_N… in setVertexAttribPointer()
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/spirv_assembly/ |
D | vktSpvAsmVariableInitTests.cpp | 57 int numComponents; member 135 const int numComponents = testParams[paramIdx].numComponents; in addComputeVariableInitPrivateTest() local 136 const int numElements = numFloats / numComponents; in addComputeVariableInitPrivateTest() 182 …rideDecoration"] = "OpDecorate %outputArray ArrayStride " + de::toString(numComponents * 4) + "\n"; in addComputeVariableInitPrivateTest() 251 const int numComponents = testParams[paramIdx].numComponents; in addGraphicsVariableInitPrivateTest() local 252 const int numElements = numFloats / numComponents; in addGraphicsVariableInitPrivateTest() 292 …rideDecoration"] = "OpDecorate %outputArray ArrayStride " + de::toString(numComponents * 4) + "\n"; in addGraphicsVariableInitPrivateTest() 625 vector<float> expectedOutput (testParams[paramIdx].numComponents, 1.0f); in addGraphicsVariableInitOutputTest()
|
/third_party/flutter/skia/src/images/ |
D | SkJpegEncoder.cpp | 80 int numComponents = 0; in setParams() local 85 numComponents = 4; in setParams() 90 numComponents = 4; in setParams() 95 numComponents = 3; in setParams() 104 numComponents = 3; in setParams() 109 numComponents = 1; in setParams() 119 numComponents = 4; in setParams() 128 fCInfo.input_components = numComponents; in setParams()
|
/third_party/skia/src/images/ |
D | SkJpegEncoder.cpp | 80 int numComponents = 0; in setParams() local 85 numComponents = 4; in setParams() 90 numComponents = 4; in setParams() 95 numComponents = 3; in setParams() 104 numComponents = 3; in setParams() 109 numComponents = 1; in setParams() 119 numComponents = 4; in setParams() 128 fCInfo.input_components = numComponents; in setParams()
|
/third_party/vk-gl-cts/modules/gles2/performance/ |
D | es2pShaderControlStatementTests.cpp | 304 const int numComponents = 4; in init() local 308 m_comparisonValueArray.resize(numVertices * numComponents); in init() 313 if (i % numComponents == 0) in init() 314 m_comparisonValueArray[i] = (i / numComponents) % 2 == 0 ? +1.0f : -1.0f; in init() 359 const int numComponents = 4; in setupProgram() local 362 …DE_ASSERT((int)m_comparisonValueArray.size() == numComponents * (getGridWidth() + 1) * (getGridHei… in setupProgram() 368 …gl.vertexAttribPointer(compareAttribLocation, (GLint)numComponents, GL_FLOAT, GL_FALSE, 0, DE_NULL… in setupProgram() 580 const int numComponents = 4; in init() local 584 m_boundArray.resize(numVertices * numComponents); in init() 589 if (i % numComponents == 0) in init() [all …]
|
/third_party/vk-gl-cts/modules/gles3/performance/ |
D | es3pShaderControlStatementTests.cpp | 308 const int numComponents = 4; in init() local 312 m_comparisonValueArray.resize(numVertices * numComponents); in init() 317 if (i % numComponents == 0) in init() 318 m_comparisonValueArray[i] = (i / numComponents) % 2 == 0 ? +1.0f : -1.0f; in init() 363 const int numComponents = 4; in setupProgram() local 366 …DE_ASSERT((int)m_comparisonValueArray.size() == numComponents * (getGridWidth() + 1) * (getGridHei… in setupProgram() 372 …gl.vertexAttribPointer(compareAttribLocation, (GLint)numComponents, GL_FLOAT, GL_FALSE, 0, DE_NULL… in setupProgram() 588 const int numComponents = 4; in init() local 592 m_boundArray.resize(numVertices * numComponents); in init() 597 if (i % numComponents == 0) in init() [all …]
|
/third_party/vk-gl-cts/modules/gles3/functional/ |
D | es3fFragmentOutputTests.cpp | 379 static inline Vec4 readVec4 (const float* ptr, int numComponents) in readVec4() argument 381 DE_ASSERT(numComponents >= 1); in readVec4() 383 numComponents >= 2 ? ptr[1] : 0.0f, in readVec4() 384 numComponents >= 3 ? ptr[2] : 0.0f, in readVec4() 385 numComponents >= 4 ? ptr[3] : 0.0f); in readVec4() 388 static inline IVec4 readIVec4 (const int* ptr, int numComponents) in readIVec4() argument 390 DE_ASSERT(numComponents >= 1); in readIVec4() 392 numComponents >= 2 ? ptr[1] : 0, in readIVec4() 393 numComponents >= 3 ? ptr[2] : 0, in readIVec4() 394 numComponents >= 4 ? ptr[3] : 0); in readIVec4() [all …]
|
/third_party/flutter/skia/src/sfnt/ |
D | SkOTTable_EBDT.h | 95 SK_OT_USHORT numComponents; // Number of components member 101 SK_OT_USHORT numComponents; // Number of components member
|
/third_party/skia/src/sfnt/ |
D | SkOTTable_EBDT.h | 95 SK_OT_USHORT numComponents; // Number of components member 101 SK_OT_USHORT numComponents; // Number of components member
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/pipeline/ |
D | vktPipelineMultisampleImageTests.cpp | 532 std::string getColorFormatStr (const int numComponents, const bool isUint, const bool isSint) in getColorFormatStr() argument 535 if (numComponents == 1) in getColorFormatStr() 538 str << (isUint ? "u" : isSint ? "i" : "") << "vec" << numComponents; in getColorFormatStr() 552 std::string getColorStr (const T* data, int numComponents, const bool isUint, const bool isSint) in getColorStr() argument 559 for (int i = 0; i < numComponents; ++i) in getColorStr() 565 for (int i = numComponents; i < maxIndex + 1; ++i) in getColorStr() 576 std::string getReferenceClearColorStr (const VkFormat format, const int numComponents, const bool i… in getReferenceClearColorStr() argument 580 return getColorStr(clearColor.uint32, numComponents, isUint, isSint); in getReferenceClearColorStr() 582 return getColorStr(clearColor.int32, numComponents, isUint, isSint); in getReferenceClearColorStr() 584 return getColorStr(clearColor.float32, numComponents, isUint, isSint); in getReferenceClearColorStr() [all …]
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/robustness/ |
D | vktRobustnessExtsTests.cpp | 549 static string genFetch(const CaseDef &caseDef, int numComponents, const string& vecType, const stri… in genFetch() argument 558 for (int i = numComponents; i < 4; ++i) s << ", 0"; in genFetch() 564 for (int i = numComponents; i < 4; ++i) s << ", 0"; in genFetch() 593 static string getStoreValue(int descriptorType, int numComponents, const string& vecType, const str… in getStoreValue() argument 601 for (int i = numComponents; i < 4; ++i) s << ", 0"; in getStoreValue() 898 …int numComponents = tcu::getPixelSize(mapVkFormat(format)) / tcu::getChannelSize(mapVkFormat(forma… in initPrograms() local 900 if (numComponents == 1) in initPrograms() 903 bufType = imgprefix + "vec" + std::to_string(numComponents); in initPrograms() 934 …checks << " int idx = smod(gl_VertexIndex * " << numComponents << ", " << refDataNumElements <<… in initPrograms() 936 checks << " int idx = smod(c * " << numComponents << ", " << refDataNumElements << ");\n"; in initPrograms() [all …]
|
/third_party/mesa3d/src/gallium/drivers/svga/ |
D | svga_pipe_streamout.c | 217 unsigned numComponents = info->output[i].dst_offset - in svga_create_stream_output() local 225 numComponents = numComponents > 4 ? 4 : numComponents; in svga_create_stream_output() 230 decls[numDecls].registerMask = (1 << numComponents) - 1; in svga_create_stream_output() 232 dstOffset[buf_idx] += numComponents; in svga_create_stream_output()
|
/third_party/skia/third_party/externals/dng_sdk/source/ |
D | dng_lossless_jpeg.cpp | 323 int16 numComponents; member 726 info.numComponents = GetJpegChar (); in GetSof() 734 (info.numComponents <= 0)) in GetSof() 752 if (length != (info.numComponents * 3 + 8)) in GetSof() 761 compInfoBuffer.Allocate (static_cast<uint32> (info.numComponents), in GetSof() 768 for (int32 ci = 0; ci < info.numComponents; ci++) in GetSof() 836 for (ci = 0; ci < info.numComponents; ci++) in GetSos() 846 if (ci >= info.numComponents) in GetSos() 1162 bool canon_sRAW = (info.numComponents == 3) && in DecoderStructInit() 1173 bool canon_sRAW2 = (info.numComponents == 3) && in DecoderStructInit() [all …]
|