Home
last modified time | relevance | path

Searched refs:componentType (Results 1 - 25 of 114) sorted by relevance

12345

/third_party/skia/src/sksl/
H A DSkSLMemoryLayout.h55 return vector_alignment(this->size(type.componentType()), type.columns()); in alignment()
57 return this->roundUpIfNeeded(vector_alignment(this->size(type.componentType()), in alignment()
60 return this->roundUpIfNeeded(this->alignment(type.componentType())); in alignment()
83 size_t base = vector_alignment(this->size(type.componentType()), type.rows()); in stride()
87 int stride = this->size(type.componentType()); in stride()
89 int align = this->alignment(type.componentType()); in stride()
116 return 4 * this->size(type.componentType()); in size()
118 return type.columns() * this->size(type.componentType()); in size()
153 return LayoutIsSupported(type.componentType()); in LayoutIsSupported()
H A DSkSLConstantFolder.cpp111 const Type& componentType = type.componentType(); in simplify_vector() local
113 if (componentType.isInteger()) { in simplify_vector()
114 minimumValue = componentType.minimumValue(); in simplify_vector()
115 maximumValue = componentType.maximumValue(); in simplify_vector()
126 args.push_back(Literal::Make(left.fLine, value, &componentType)); in simplify_vector()
505 if (leftType.componentType().isFloat()) { in Simplify()
508 if (leftType.componentType().isInteger()) { in Simplify()
511 if (leftType.componentType().isBoolean()) { in Simplify()
518 if (leftType.isVector() && leftType.componentType() in Simplify()
[all...]
H A DSkSLOperators.cpp303 const Type& leftComponentType = left.componentType(); in determineBinaryType()
304 const Type& rightComponentType = right.componentType(); in determineBinaryType()
312 if (!this->determineBinaryType(context, left.componentType(), right.componentType(), in determineBinaryType()
344 if (!this->determineBinaryType(context, left.componentType(), right, in determineBinaryType()
360 if (!this->determineBinaryType(context, left, right.componentType(), in determineBinaryType()
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/
H A DFormat.h33 GLenum componentType,
89 GLenum componentType; member
137 GLenum componentType, in Format()
160 componentType(componentType), in Format()
205 return componentType == GL_INT; in isSint()
210 return componentType == GL_UNSIGNED_INT; in isUint()
215 return componentType == GL_SIGNED_NORMALIZED; in isSnorm()
220 return componentType == GL_UNSIGNED_NORMALIZED; in isUnorm()
225 return componentType in isFloat()
130 Format(FormatID id, GLenum glFormat, GLenum fboFormat, rx::MipGenerationFunction mipGen, const rx::FastCopyFunctionMap &fastCopyFunctions, rx::PixelReadFunction colorRead, rx::PixelWriteFunction colorWrite, GLenum componentType, GLuint redBits, GLuint greenBits, GLuint blueBits, GLuint alphaBits, GLuint luminanceBits, GLuint depthBits, GLuint stencilBits, GLuint pixelBytes, GLuint componentAlignmentMask, bool isBlock, bool isFixed, bool isScaled, bool isSRGB, bool isYUV, gl::VertexAttribType vertexAttribType) Format() argument
[all...]
/third_party/skia/src/sksl/ir/
H A DSkSLType.cpp29 ArrayType(skstd::string_view name, const char* abbrev, const Type& componentType, int count) in ArrayType() argument
31 , fComponentType(componentType) in ArrayType()
36 SkASSERT(!componentType.is<ArrayType>()); in ArrayType()
43 const Type& componentType() const override {
52 return this->componentType().bitWidth();
201 MatrixType(skstd::string_view name, const char* abbrev, const Type& componentType, in MatrixType() argument
204 , fComponentType(componentType.as<ScalarType>()) in MatrixType()
211 const ScalarType& componentType() const override {
224 return this->componentType().bitWidth();
374 VectorType(skstd::string_view name, const char* abbrev, const Type& componentType,
[all...]
H A DSkSLConstructor.cpp36 argument->type().componentType() == type.componentType() && in convert_compound_constructor()
61 context, line, type.componentType(), std::move(args)); in convert_compound_constructor()
83 const Type& typecastType = type.componentType().toCompound( in convert_compound_constructor()
100 const Type& vectorType = argument->type().componentType().toCompound(context, in convert_compound_constructor()
129 const Type& ctorType = type.componentType().toCompound(context, arg->type().columns(), in convert_compound_constructor()
154 if (args.size() == 1 && args[0]->type() == type && !type.componentType().isOpaque()) { in Convert()
H A DSkSLPrefixExpression.cpp154 if (baseType.isArray() || !baseType.componentType().isNumber()) { in Convert()
162 if (baseType.isArray() || !baseType.componentType().isNumber()) { in Convert()
200 if (baseType.isArray() || !baseType.componentType().isInteger()) { in Convert()
227 SkASSERT(base->type().componentType().isNumber()); in Make()
232 SkASSERT(base->type().componentType().isNumber()); in Make()
248 SkASSERT(base->type().componentType().isInteger()); in Make()
H A DSkSLIndexExpression.cpp33 if (type.componentType() == *context.fTypes.fFloat) { in IndexType()
40 } else if (type.componentType() == *context.fTypes.fHalf) { in IndexType()
49 return type.componentType(); in IndexType()
128 const Type& scalarType = baseType.componentType(); in Make()
H A DSkSLType.h108 static std::unique_ptr<Type> MakeArrayType(skstd::string_view name, const Type& componentType,
126 const Type& componentType, int columns,
154 const Type& componentType, int columns);
340 virtual const Type& componentType() const { in componentType() function in SkSL::Type
471 return this->componentType().isNumber() || fTypeKind == TypeKind::kSampler; in hasPrecision()
H A DSkSLVarDeclarations.cpp49 if (baseType->componentType().isOpaque() && storage != Variable::Storage::kGlobal) { in ErrorCheck()
77 return t.isVector() && t.componentType().isFloat() && in ErrorCheck()
81 validColorXformType(baseType->componentType()))) { in ErrorCheck()
100 baseType = &baseType->componentType(); in ErrorCheckAndCoerce()
166 baseType = &baseType->componentType(); in Convert()
H A DSkSLFunctionCall.cpp48 SkASSERT(expr.type().componentType().isFloat()); in type_check_expression()
53 SkASSERT(expr.type().componentType().isInteger()); in type_check_expression()
58 SkASSERT(expr.type().componentType().isBoolean()); in type_check_expression()
69 array.push_back(Literal::Make(line, value[index], &returnType.componentType())); in assemble_compound()
100 SkASSERT( arg0->type().componentType() == vecType.componentType()); in coalesce_n_way_vector()
101 SkASSERT(!arg1 || arg1->type().componentType() == vecType.componentType()); in coalesce_n_way_vector()
176 SkASSERT(type.componentType().isScalar()); in optimize_comparison()
267 const Type& type = arguments[0]->type().componentType(); in evaluate_intrinsic_numeric()
[all...]
H A DSkSLConstructorMatrixResize.cpp21 SkASSERT(arg->type().componentType() == type.componentType()); in Make()
H A DSkSLConstructorArray.cpp52 const Type& baseType = type.componentType(); in Convert()
71 return type.componentType() == arg->type(); in Make()
H A DSkSLConstructorCompound.cpp35 (argType.componentType() == type.componentType()); in Make()
H A DSkSLSwizzle.cpp114 const Type& componentType = exprType.componentType(); in optimize_constructor_swizzle() local
230 componentType.toCompound(context, swizzleSize, /*rows=*/1), in optimize_constructor_swizzle()
391 const Type* scalarType = &baseType.componentType(); in Convert()
499 splat.type().componentType().toCompound(context, components.size(), /*rows=*/1), in Make()
H A DSkSLConstructor.h48 const Type& componentType() const { in componentType() function in SkSL::AnyConstructor
49 return this->type().componentType(); in componentType()
H A DSkSLTernaryExpression.cpp40 if (trueType->componentType().isOpaque()) { in Convert()
66 SkASSERT(!ifTrue->type().componentType().isOpaque()); in Make()
/third_party/vk-gl-cts/framework/opengl/
H A DgluDrawUtil.cpp44 VertexComponentType componentType; member
59 , componentType (componentType_) in VertexAttributeDescriptor()
70 , componentType (VTX_COMP_TYPE_LAST) in VertexAttributeDescriptor()
278 const int elementSize = getVtxCompSize(va.pointer.componentType)*va.pointer.numComponents; in appendAttributeNonStrided()
285 va.pointer.componentType, in appendAttributeNonStrided()
303 DE_ASSERT(dstVA.componentType == srcPtr.componentType && in copyToLayout()
307 const int elementSize = getVtxCompSize(dstVA.componentType)*dstVA.numComponents; in copyToLayout()
394 vertexArray.pointer.componentType, in getUserPointerDescriptor()
405 const bool isIntType = de::inRange<int>(va.componentType, VTX_COMP_UNSIGNED_INT in setVertexAttribPointer()
[all...]
H A DgluDrawUtil.hpp114 VertexComponentType componentType; //!< Component type. member
123 : componentType (componentType_) in VertexArrayPointer()
133 : componentType (VTX_COMP_TYPE_LAST) in VertexArrayPointer()
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/d3d11/
H A DPixelTransfer11.cpp261 GLenum componentType = gl::GetSizedInternalFormatInfo(internalFormat).componentType; in findBufferToTexturePS() local
262 if (componentType == GL_SIGNED_NORMALIZED || componentType == GL_UNSIGNED_NORMALIZED) in findBufferToTexturePS()
264 componentType = GL_FLOAT; in findBufferToTexturePS()
267 auto shaderMapIt = mBufferToTexturePSMap.find(componentType); in findBufferToTexturePS()
/third_party/skia/third_party/externals/angle2/src/common/
H A Dutilities.h143 GLenum componentType,
159 GLenum componentType; member
176 GLenum componentType, in UniformTypeInfo()
191 componentType(componentType), in UniformTypeInfo()
175 UniformTypeInfo(GLenum type, GLenum componentType, GLenum textureType, GLenum transposedMatrixType, GLenum boolVectorType, SamplerFormat samplerFormat, int rowCount, int columnCount, int componentCount, size_t componentSize, size_t internalSize, size_t externalSize, bool isSampler, bool isMatrixType, bool isImageType) UniformTypeInfo() argument
/third_party/skia/src/sksl/codegen/
H A DSkSLSPIRVCodeGenerator.cpp208 type.componentType().isFloat(); in is_float()
212 return (type.isScalar() || type.isVector()) && type.componentType().isSigned(); in is_signed()
216 return (type.isScalar() || type.isVector()) && type.componentType().isUnsigned(); in is_unsigned()
220 return (type.isScalar() || type.isVector()) && type.componentType().isBoolean(); in is_bool()
535 if (type.componentType() == *fContext.fTypes.fHalf) { in getActualType()
538 if (type.componentType() == *fContext.fTypes.fShort) { in getActualType()
541 if (type.componentType() == *fContext.fTypes.fUShort) { in getActualType()
561 const Type& component = this->getActualType(rawType.componentType()); in getType()
602 this->getType(type->componentType(), layout), in getType()
623 SpvId typeId = this->getType(type->componentType(), layou in getType()
1614 SpvId componentType = this->getType(type.componentType()); writeMatrixConstructor() local
1644 SpvId componentType = this->getType(argType.componentType()); writeMatrixConstructor() local
1665 const Type& componentType = type.componentType(); writeVectorConstructor() local
2580 const Type& componentType = arrayType.componentType(); writeArrayComparison() local
[all...]
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/
H A DDynamicHLSL.cpp31 const char *HLSLComponentTypeString(GLenum componentType) in HLSLComponentTypeString() argument
33 switch (componentType) in HLSLComponentTypeString()
49 void HLSLComponentTypeString(std::ostringstream &ostream, GLenum componentType, int componentCount) in HLSLComponentTypeString() argument
51 ostream << HLSLComponentTypeString(componentType); in HLSLComponentTypeString()
206 GLenum componentType = mRenderer->getVertexComponentType(vertexFormatID); in generateVertexShaderForInputLayout()
209 HLSLComponentTypeString(structStream, componentType, in generateVertexShaderForInputLayout()
446 GLenum componentType = gl::VariableComponentType(transposedType);
448 HLSLComponentTypeString(hlslStream, componentType, columnCount);
/third_party/skia/third_party/externals/dawn/src/dawn_native/opengl/
H A DGLFormat.cpp25 GLenum format, GLenum type, Type componentType) { in BuildGLFormatTable()
32 table[index].componentType = componentType; in BuildGLFormatTable()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/sparse_resources/
H A DvktSparseResourcesShaderIntrinsicsBase.hpp97 const std::string& componentType,
101 const std::string& componentType,

Completed in 18 milliseconds

12345