/third_party/skia/src/sksl/ir/ |
D | SkSLVarDeclarations.cpp | 21 &this->baseType(), in clone() 27 String result = this->var().modifiers().description() + this->baseType().description() + " " + in description() 40 const Type* baseType, Variable::Storage storage) { in ErrorCheck() argument 41 if (*baseType == *context.fTypes.fInvalid) { in ErrorCheck() 45 if (context.fConfig->strictES2Mode() && baseType->isArray()) { in ErrorCheck() 49 if (baseType->componentType().isOpaque() && storage != Variable::Storage::kGlobal) { in ErrorCheck() 51 "variables of type '" + baseType->displayName() + "' must be global"); in ErrorCheck() 53 if ((modifiers.fFlags & Modifiers::kIn_Flag) && baseType->isMatrix()) { in ErrorCheck() 64 if (baseType->isEffectChild() && !(modifiers.fFlags & Modifiers::kUniform_Flag)) { in ErrorCheck() 66 "variables of type '" + baseType->displayName() + "' must be uniform"); in ErrorCheck() [all …]
|
D | SkSLIndexExpression.cpp | 58 const Type& baseType = base->as<TypeReference>().value(); in Convert() local 59 SKSL_INT arraySize = baseType.convertArraySize(context, std::move(index)); in Convert() 64 symbolTable.addArrayDimension(&baseType, arraySize)); in Convert() 67 const Type& baseType = base->type(); in Convert() local 68 if (!baseType.isArray() && !baseType.isMatrix() && !baseType.isVector()) { in Convert() 70 "expected array, but found '" + baseType.displayName() + "'"); in Convert() 93 const Type& baseType = base->type(); in Make() local 94 SkASSERT(baseType.isArray() || baseType.isMatrix() || baseType.isVector()); in Make() 101 if (baseType.isVector()) { in Make() 107 if (baseType.isArray() && !base->hasSideEffects()) { in Make() [all …]
|
D | SkSLPrefixExpression.cpp | 151 const Type& baseType = base->type(); in Convert() local 154 if (baseType.isArray() || !baseType.componentType().isNumber()) { in Convert() 156 "'+' cannot operate on '" + baseType.displayName() + "'"); in Convert() 162 if (baseType.isArray() || !baseType.componentType().isNumber()) { in Convert() 164 "'-' cannot operate on '" + baseType.displayName() + "'"); in Convert() 171 if (!baseType.isNumber()) { in Convert() 174 baseType.displayName() + "'"); in Convert() 184 if (!baseType.isBoolean()) { in Convert() 187 baseType.displayName() + "'"); in Convert() 200 if (baseType.isArray() || !baseType.componentType().isInteger()) { in Convert() [all …]
|
D | SkSLFieldAccess.cpp | 21 const Type& baseType = base->type(); in Convert() local 22 if (baseType.isEffectChild()) { in Convert() 45 "type '" + baseType.displayName() + "' has no method named '" + field + "'"); in Convert() 48 if (baseType.isStruct()) { in Convert() 49 const std::vector<Type::Field>& fields = baseType.fields(); in Convert() 56 if (baseType == *context.fTypes.fSkCaps) { in Convert() 60 context.fErrors->error(base->fLine, "type '" + baseType.displayName() + in Convert()
|
D | SkSLVarDeclarations.h | 32 const Type* baseType, in VarDeclaration() argument 37 , fBaseType(*baseType) in VarDeclaration() 52 const Type* baseType, Variable::Storage storage); 61 const Type* baseType, 64 const Type& baseType() const { in baseType() function
|
D | SkSLPostfixExpression.cpp | 20 const Type& baseType = base->type(); in Convert() local 21 if (!baseType.isNumber()) { in Convert() 24 baseType.displayName() + "'"); in Convert()
|
D | SkSLVariable.cpp | 32 const Modifiers& modifiers, const Type* baseType, skstd::string_view name, bool isArray, in Convert() argument 39 return Make(context, line, modifiers, baseType, name, isArray, std::move(arraySize), storage); in Convert() 43 const Modifiers& modifiers, const Type* baseType, skstd::string_view name, bool isArray, in Make() argument 45 const Type* type = baseType; in Make()
|
D | SkSLSwizzle.cpp | 284 const Type& baseType = base->type(); in Convert() local 286 if (!baseType.isVector() && !baseType.isScalar()) { in Convert() 288 line, "cannot swizzle value of type '" + baseType.displayName() + "'"); in Convert() 318 if (baseType.columns() >= 2) { in Convert() 328 if (baseType.columns() >= 3) { in Convert() 338 if (baseType.columns() >= 4) { in Convert() 358 base = baseType.scalarTypeForLiteral().coerceExpression(std::move(base), context); in Convert() 391 const Type* scalarType = &baseType.componentType(); in Convert()
|
D | SkSLConstructorArray.cpp | 52 const Type& baseType = type.componentType(); in Convert() local 54 argument = baseType.coerceExpression(std::move(argument), context); in Convert()
|
D | SkSLVariable.h | 55 const Modifiers& modifiers, const Type* baseType, skstd::string_view name, bool isArray, 59 const Modifiers& modifiers, const Type* baseType, skstd::string_view name, bool isArray,
|
/third_party/vk-gl-cts/framework/randomshaders/ |
D | rsgVariableType.hpp | 132 VariableType (Type baseType, int numElements = 0); 133 VariableType (Type baseType, const VariableType& elementType, int numElements); 134 VariableType (Type baseType, const char* typeName); 166 static const VariableType& getScalarType (Type baseType); 186 inline VariableType::VariableType (Type baseType, int numElements) in VariableType() argument 187 : m_baseType (baseType) in VariableType() 193 DE_ASSERT(baseType != TYPE_ARRAY && baseType != TYPE_STRUCT); in VariableType() 196 inline VariableType::VariableType (Type baseType, const VariableType& elementType, int numElements) in VariableType() argument 197 : m_baseType (baseType) in VariableType() 203 DE_ASSERT(baseType == TYPE_ARRAY); in VariableType() [all …]
|
D | rsgShaderGenerator.cpp | 139 VariableType::Type baseType = valueRange.getType().getBaseType(); in fillUndefinedComponents() local 140 TCU_CHECK(baseType == VariableType::TYPE_FLOAT || in fillUndefinedComponents() 141 baseType == VariableType::TYPE_INT || in fillUndefinedComponents() 142 baseType == VariableType::TYPE_BOOL); in fillUndefinedComponents() 151 switch (baseType) in fillUndefinedComponents()
|
/third_party/vk-gl-cts/modules/gles31/functional/ |
D | es31fShaderIntegerFunctionTests.cpp | 322 static std::string getIntegerFuncCaseName (glu::DataType baseType, glu::Precision precision, glu::S… in getIntegerFuncCaseName() argument 324 …return string(glu::getDataTypeName(baseType)) + getPrecisionPostfix(precision) + getShaderTypePost… in getIntegerFuncCaseName() 330 …UaddCarryCase (Context& context, glu::DataType baseType, glu::Precision precision, glu::ShaderType… in UaddCarryCase() argument 331 …: IntegerFunctionCase(context, getIntegerFuncCaseName(baseType, precision, shaderType).c_str(), "u… in UaddCarryCase() 333 m_spec.inputs.push_back(Symbol("x", glu::VarType(baseType, precision))); in UaddCarryCase() 334 m_spec.inputs.push_back(Symbol("y", glu::VarType(baseType, precision))); in UaddCarryCase() 335 m_spec.outputs.push_back(Symbol("sum", glu::VarType(baseType, precision))); in UaddCarryCase() 336 m_spec.outputs.push_back(Symbol("carry", glu::VarType(baseType, glu::PRECISION_LOWP))); in UaddCarryCase() 426 …UsubBorrowCase (Context& context, glu::DataType baseType, glu::Precision precision, glu::ShaderTyp… in UsubBorrowCase() argument 427 …: IntegerFunctionCase(context, getIntegerFuncCaseName(baseType, precision, shaderType).c_str(), "u… in UsubBorrowCase() [all …]
|
D | es31fShaderCommonFunctionTests.cpp | 452 static std::string getCommonFuncCaseName (glu::DataType baseType, glu::Precision precision, glu::Sh… in getCommonFuncCaseName() argument 454 …return string(glu::getDataTypeName(baseType)) + getPrecisionPostfix(precision) + getShaderTypePost… in getCommonFuncCaseName() 460 …AbsCase (Context& context, glu::DataType baseType, glu::Precision precision, glu::ShaderType shade… in AbsCase() argument 461 …: CommonFunctionCase(context, getCommonFuncCaseName(baseType, precision, shaderType).c_str(), "abs… in AbsCase() 463 m_spec.inputs.push_back(Symbol("in0", glu::VarType(baseType, precision))); in AbsCase() 464 m_spec.outputs.push_back(Symbol("out0", glu::VarType(baseType, precision))); in AbsCase() 542 …SignCase (Context& context, glu::DataType baseType, glu::Precision precision, glu::ShaderType shad… in SignCase() argument 543 …: CommonFunctionCase(context, getCommonFuncCaseName(baseType, precision, shaderType).c_str(), "sig… in SignCase() 545 m_spec.inputs.push_back(Symbol("in0", glu::VarType(baseType, precision))); in SignCase() 546 m_spec.outputs.push_back(Symbol("out0", glu::VarType(baseType, precision))); in SignCase() [all …]
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/shaderexecutor/ |
D | vktShaderIntegerFunctionTests.cpp | 196 static std::string getIntegerFuncCaseName (glu::DataType baseType, glu::Precision precision, glu::S… in getIntegerFuncCaseName() argument 198 …return string(glu::getDataTypeName(baseType)) + getPrecisionPostfix(precision) + getShaderTypePost… in getIntegerFuncCaseName() 496 …UaddCarryCase (tcu::TestContext& testCtx, glu::DataType baseType, glu::Precision precision, glu::S… in UaddCarryCase() argument 497 …: IntegerFunctionCase (testCtx, getIntegerFuncCaseName(baseType, precision, shaderType).c_str(), "… in UaddCarryCase() 499 m_spec.inputs.push_back(Symbol("x", glu::VarType(baseType, precision))); in UaddCarryCase() 500 m_spec.inputs.push_back(Symbol("y", glu::VarType(baseType, precision))); in UaddCarryCase() 501 m_spec.outputs.push_back(Symbol("sum", glu::VarType(baseType, precision))); in UaddCarryCase() 502 m_spec.outputs.push_back(Symbol("carry", glu::VarType(baseType, glu::PRECISION_LOWP))); in UaddCarryCase() 604 …UsubBorrowCase (tcu::TestContext& testCtx, glu::DataType baseType, glu::Precision precision, glu::… in UsubBorrowCase() argument 605 …: IntegerFunctionCase (testCtx, getIntegerFuncCaseName(baseType, precision, shaderType).c_str(), "… in UsubBorrowCase() [all …]
|
D | vktShaderCommonFunctionTests.cpp | 333 static std::string getCommonFuncCaseName (glu::DataType baseType, glu::Precision precision) in getCommonFuncCaseName() argument 335 const bool isDouble = glu::isDataTypeDoubleOrDVec(baseType); in getCommonFuncCaseName() 336 …return string(glu::getDataTypeName(baseType)) + (isDouble ? "" : getPrecisionPostfix(precision)) +… in getCommonFuncCaseName() 547 AbsCase (tcu::TestContext& testCtx, glu::DataType baseType, glu::Precision precision) in AbsCase() argument 548 : CommonFunctionCase (testCtx, getCommonFuncCaseName(baseType, precision).c_str(), "abs") in AbsCase() 550 m_spec.inputs.push_back(Symbol("in0", glu::VarType(baseType, precision))); in AbsCase() 551 m_spec.outputs.push_back(Symbol("out0", glu::VarType(baseType, precision))); in AbsCase() 619 SignCase (tcu::TestContext& testCtx, glu::DataType baseType, glu::Precision precision) in SignCase() argument 620 : CommonFunctionCase (testCtx, getCommonFuncCaseName(baseType, precision).c_str(), "sign") in SignCase() 622 m_spec.inputs.push_back(Symbol("in0", glu::VarType(baseType, precision))); in SignCase() [all …]
|
/third_party/vk-gl-cts/modules/gles3/functional/ |
D | es3fShaderCommonFunctionTests.cpp | 377 static std::string getCommonFuncCaseName (glu::DataType baseType, glu::Precision precision, glu::Sh… in getCommonFuncCaseName() argument 379 …return string(glu::getDataTypeName(baseType)) + getPrecisionPostfix(precision) + getShaderTypePost… in getCommonFuncCaseName() 385 …AbsCase (Context& context, glu::DataType baseType, glu::Precision precision, glu::ShaderType shade… in AbsCase() argument 386 …: CommonFunctionCase(context, getCommonFuncCaseName(baseType, precision, shaderType).c_str(), "abs… in AbsCase() 388 m_spec.inputs.push_back(Symbol("in0", glu::VarType(baseType, precision))); in AbsCase() 389 m_spec.outputs.push_back(Symbol("out0", glu::VarType(baseType, precision))); in AbsCase() 467 …SignCase (Context& context, glu::DataType baseType, glu::Precision precision, glu::ShaderType shad… in SignCase() argument 468 …: CommonFunctionCase(context, getCommonFuncCaseName(baseType, precision, shaderType).c_str(), "sig… in SignCase() 470 m_spec.inputs.push_back(Symbol("in0", glu::VarType(baseType, precision))); in SignCase() 471 m_spec.outputs.push_back(Symbol("out0", glu::VarType(baseType, precision))); in SignCase() [all …]
|
/third_party/flutter/skia/third_party/externals/sdl/src/filesystem/cocoa/ |
D | SDL_sysfilesystem.m | 41 …const char* baseType = [[[bundle infoDictionary] objectForKey:@"SDL_FILESYSTEM_BASE_DIR_TYPE"] UTF… 45 if (baseType == NULL) { 46 baseType = "resource"; 48 if (SDL_strcasecmp(baseType, "bundle")==0) { 50 } else if (SDL_strcasecmp(baseType, "parent")==0) {
|
/third_party/skia/src/sksl/dsl/priv/ |
D | DSLWriter.cpp | 47 const SkSL::Type* baseType = &var.fType.skslType(); in Var() local 48 if (baseType->isArray()) { in Var() 49 baseType = &baseType->componentType(); in Var()
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/spirv_assembly/ |
D | vktSpvAsmTrinaryMinMaxTests.cpp | 95 BaseType baseType; member 319 const Case paramCase{params.baseType, params.typeSize, params.operation}; 475 if (m_params.baseType == BaseType::TYPE_INT || m_params.baseType == BaseType::TYPE_UINT) in checkSupport() 499 if (m_params.baseType == BaseType::TYPE_INT || m_params.baseType == BaseType::TYPE_UINT) in getSpirVReplacements() 540 if (m_params.baseType == BaseType::TYPE_INT || m_params.baseType == BaseType::TYPE_UINT) in getSpirVReplacements() 542 const std::string signBit = (m_params.baseType == BaseType::TYPE_INT ? "1" : "0"); in getSpirVReplacements() 543 const std::string typePrefix = (m_params.baseType == BaseType::TYPE_UINT ? "u" : ""); in getSpirVReplacements() 565 …if (m_params.baseType != BaseType::TYPE_UINT || m_params.typeSize != TypeSize::SIZE_32BIT || m_par… in getSpirVReplacements() 592 …replacements["OPERATION_NAME"] = opPrefix[static_cast<int>(m_params.baseType)] + opTypeStr[static_… in getSpirVReplacements() 868 for (const auto& baseType : baseTypes) in createTrinaryMinMaxGroup() local [all …]
|
/third_party/glslang/glslang/MachineIndependent/ |
D | reflection.cpp | 195 int getArrayStride(const TType& baseType, const TType& type) in getArrayStride() argument 206 baseType.getQualifier().layoutPacking, in getArrayStride() 209 : baseType.getQualifier().layoutMatrix == ElmRowMajor); in getArrayStride() 251 …void blowUpActiveAggregate(const TType& baseType, const TString& baseName, const TList<TIntermBina… in blowUpActiveAggregate() argument 263 …bool blockParent = (baseType.getBasicType() == EbtBlock && baseType.getQualifier().storage == EvqB… in blowUpActiveAggregate() 267 const TType* terminalType = &baseType; in blowUpActiveAggregate() 274 int stride = getArrayStride(baseType, visitNode->getLeft()->getType()); in blowUpActiveAggregate() 285 else if (strictArraySuffix || baseType.getBasicType() != EbtBlock) in blowUpActiveAggregate() 300 int stride = getArrayStride(baseType, visitNode->getLeft()->getType()); in blowUpActiveAggregate() 306 else if (strictArraySuffix || baseType.getBasicType() != EbtBlock) { in blowUpActiveAggregate() [all …]
|
/third_party/typescript_eslint/packages/eslint-plugin/src/rules/ |
D | no-throw-literal.ts | 55 for (const baseType of checker.getBaseTypes(type as ts.InterfaceType)) { constant 56 if (isErrorLike(baseType)) {
|
/third_party/skia/third_party/externals/dawn/src/dawn_native/ |
D | Format.cpp | 179 firstAspect->baseType = wgpu::TextureComponentType::Float; in BuildFormatTable() 182 firstAspect->baseType = wgpu::TextureComponentType::Sint; in BuildFormatTable() 185 firstAspect->baseType = wgpu::TextureComponentType::Uint; in BuildFormatTable() 192 firstAspect->baseType = wgpu::TextureComponentType::Float; in BuildFormatTable() 213 firstAspect->baseType = wgpu::TextureComponentType::Float; in BuildFormatTable() 232 firstAspect->baseType = wgpu::TextureComponentType::Uint; in BuildFormatTable() 253 firstAspect->baseType = wgpu::TextureComponentType::Float; in BuildFormatTable()
|
/third_party/flutter/skia/third_party/externals/angle2/src/compiler/translator/tree_ops/ |
D | RemoveDynamicIndexing.cpp | 103 TType *baseType = new TType(type); in GetBaseType() local 108 baseType->setPrecision(EbpHigh); in GetBaseType() 109 baseType->setQualifier(EvqInOut); in GetBaseType() 111 baseType->setQualifier(EvqIn); in GetBaseType() 112 return baseType; in GetBaseType()
|
/third_party/flutter/skia/src/sksl/ir/ |
D | SkSLVarDeclarations.h | 71 VarDeclarations(int offset, const Type* baseType, in VarDeclarations() 74 , fBaseType(*baseType) { in VarDeclarations()
|