/third_party/skia/third_party/externals/swiftshader/src/Shader/ |
D | ShaderCore.cpp | 124 x0 = Min(x0, As<Float4>(Int4(0x43010000))); // 129.00000e+0f in exponential2() 125 x0 = Max(x0, As<Float4>(Int4(0xC2FDFFFF))); // -126.99999e+0f in exponential2() 128 …Float4 ii = As<Float4>((i + Int4(127)) << 23); // Add single-precision bias, and shift into expo… in exponential2() 133 Float4 ff = As<Float4>(Int4(0x3AF61905)); // 1.8775767e-3f in exponential2() 134 ff = ff * f + As<Float4>(Int4(0x3C134806)); // 8.9893397e-3f in exponential2() 135 ff = ff * f + As<Float4>(Int4(0x3D64AA23)); // 5.5826318e-2f in exponential2() 136 ff = ff * f + As<Float4>(Int4(0x3E75EAD4)); // 2.4015361e-1f in exponential2() 137 ff = ff * f + As<Float4>(Int4(0x3F31727B)); // 6.9315308e-1f in exponential2() 152 x1 = As<Float4>(As<Int4>(x0) & Int4(0x7F800000)); in logarithm2() 153 x1 = As<Float4>(As<UInt4>(x1) >> 8); in logarithm2() [all …]
|
D | PixelRoutine.cpp | 356 …value = CmpGT(As<SByte8>(value), *Pointer<SByte8>(data + OFFSET(DrawData,stencil[CCW].referenceMas… in stencilTest() 369 …value = CmpGT(As<SByte8>(value), *Pointer<SByte8>(data + OFFSET(DrawData,stencil[CCW].referenceMas… in stencilTest() 375 equal = CmpGT(As<SByte8>(equal), As<SByte8>(value)); in stencilTest() 380 …value = CmpGT(As<SByte8>(value), *Pointer<SByte8>(data + OFFSET(DrawData,stencil[CCW].referenceMas… in stencilTest() 714 …Z = As<Float4>(As<Int4>(Z) & *Pointer<Int4>(constants + OFFSET(Constants,maskD4X) + zMask * 16, 16… in writeDepth() 715 …zValue = As<Float4>(As<Int4>(zValue) & *Pointer<Int4>(constants + OFFSET(Constants,invMaskD4X) + z… in writeDepth() 716 Z = As<Float4>(As<Int4>(Z) | As<Int4>(zValue)); in writeDepth() 914 blendFactor.x = Min(As<UShort4>(blendFactor.x), As<UShort4>(current.w)); in blendFactor() 1010 c01 = As<Short4>(Int2(*Pointer<Int>(buffer), *Pointer<Int>(buffer2))); in readPixel() 1024 pixel.z = UnpackLow(As<Byte8>(pixel.z), As<Byte8>(c23)); in readPixel() [all …]
|
D | SamplerCore.cpp | 140 c.x = MulHigh(As<UShort4>(c.x), UShort4(0x10000000 / 0xF800)); in sampleTexture() 141 c.y = MulHigh(As<UShort4>(c.y), UShort4(0x10000000 / 0xFC00)); in sampleTexture() 142 c.z = MulHigh(As<UShort4>(c.z), UShort4(0x10000000 / 0xF800)); in sampleTexture() 150 c[component] = As<UShort4>(c[component]) >> 4; in sampleTexture() 364 c.x = Float4(As<UShort4>(cs.x)) * Float4(1.0f / 0xF800); in sampleTexture() 365 c.y = Float4(As<UShort4>(cs.y)) * Float4(1.0f / 0xFC00); in sampleTexture() 366 c.z = Float4(As<UShort4>(cs.z)) * Float4(1.0f / 0xF800); in sampleTexture() 397 c.y = As<Float4>(UInt4(0)); in sampleTexture() 404 c.z = As<Float4>(UInt4(0)); in sampleTexture() 411 c.w = As<Float4>(UInt4(1)); in sampleTexture() [all …]
|
/third_party/zlib/old/ |
D | visual-basic.txt | 32 Declare Function compress Lib "ZLIB.DLL" (ByVal compr As 33 String, comprLen As Any, ByVal buf As String, ByVal buflen 34 As Long) As Integer 36 As String, uncomprLen As Any, ByVal compr As String, ByVal 37 lcompr As Long) As Integer 38 Declare Function gzopen Lib "ZLIB.DLL" (ByVal filePath As 39 String, ByVal mode As String) As Long 40 Declare Function gzread Lib "ZLIB.DLL" (ByVal file As 41 Long, ByVal uncompr As String, ByVal uncomprLen As Integer) 42 As Integer [all …]
|
/third_party/skia/third_party/externals/swiftshader/src/Reactor/ |
D | OptimalIntrinsics.cpp | 109 …return As<Float4>(As<Int4>(half_pi - Sqrt(Float4(1.0f) - absx) * (a0 + absx * (a1 + absx * (a2 + a… in Asin_4_terms() 110 (As<Int4>(x) & Int4(0x80000000))); in Asin_4_terms() 127 …return As<Float4>(As<Int4>(half_pi - Sqrt(Float4(1.0f) - absx) * (a0 + absx * (a1 + absx * (a2 + a… in Asin_8_terms() 128 (As<Int4>(x) & Int4(0x80000000))); in Asin_8_terms() 147 …Float4 y = As<Float4>((O & As<Int4>(Float4(1.0f) / absx)) | (~O & As<Int4>(absx))); // FIXME: Vec… in Atan() 151 …return As<Float4>(((O & As<Int4>(half_pi - theta)) | (~O & As<Int4>(theta))) ^ // FIXME: Vector s… in Atan() 152 (As<Int4>(x) & Int4(0x80000000))); in Atan() 164 Float4 theta = As<Float4>(S & As<Int4>(minus_pi)); in Atan2() 165 Float4 x0 = As<Float4>((As<Int4>(y) & Int4(0x80000000)) ^ As<Int4>(x)); in Atan2() 170 theta += As<Float4>(Q & As<Int4>(half_pi)); in Atan2() [all …]
|
/third_party/skia/third_party/externals/swiftshader/src/Pipeline/ |
D | PixelRoutine.cpp | 391 …value = CmpGT(As<SByte8>(value), *Pointer<SByte8>(data + OFFSET(DrawData, stencil[isBack].referenc… in stencilTest() 404 …value = CmpGT(As<SByte8>(value), *Pointer<SByte8>(data + OFFSET(DrawData, stencil[isBack].referenc… in stencilTest() 410 equal = CmpGT(As<SByte8>(equal), As<SByte8>(value)); in stencilTest() 415 …value = CmpGT(As<SByte8>(value), *Pointer<SByte8>(data + OFFSET(DrawData, stencil[isBack].referenc… in stencilTest() 511 zValue = As<Short4>(Insert(As<Int2>(zValue), *Pointer<Int>(buffer), 0)); in depthTest16() 512 zValue = As<Short4>(Insert(As<Int2>(zValue), *Pointer<Int>(buffer + pitch), 1)); in depthTest16() 619 Float4 zValue = convertFloat32(As<UShort4>(z)); in depthBoundsTest16() 705 …Z = As<Float4>(As<Int4>(Z) & *Pointer<Int4>(constants + OFFSET(Constants, maskD4X) + zMask * 16, 1… in writeDepth32F() 706 …zValue = As<Float4>(As<Int4>(zValue) & *Pointer<Int4>(constants + OFFSET(Constants, invMaskD4X) + … in writeDepth32F() 707 Z = As<Float4>(As<Int4>(Z) | As<Int4>(zValue)); in writeDepth32F() [all …]
|
D | SamplerCore.cpp | 54 w = As<Float4>(face); in sampleTexture() 105 lod = Float(As<Int>(lodOrBias)); in sampleTexture() 169 c[component] = Float4(As<UShort4>(cs[component])); in sampleTexture() 217 c.x = c.y = c.z = c.w = integer ? As<Float4>(Int4(1)) : RValue<Float4>(Float4(1.0f)); in sampleTexture() 237 return Float4(As<Float4>(sw::Int4(1, 1, 1, 1))); in applySwizzle() 274 case -1: return SubSat(As<UShort4>(uvw), As<UShort4>(offset)); in offsetSample() 276 case +1: return AddSat(As<UShort4>(uvw), As<UShort4>(offset)); in offsetSample() 277 case 2: return AddSat(AddSat(As<UShort4>(uvw), As<UShort4>(offset)), As<UShort4>(offset)); in offsetSample() 303 cc.x = MulHigh(As<UShort4>(cc.x), utri); in sampleFilter() 307 cc.y = MulHigh(As<UShort4>(cc.y), utri); in sampleFilter() [all …]
|
D | ShaderCore.cpp | 162 x0 = Min(x0, As<Float4>(Int4(0x43010000))); // 129.00000e+0f in exponential2() 163 x0 = Max(x0, As<Float4>(Int4(0xC2FDFFFF))); // -126.99999e+0f in exponential2() 166 …Float4 ii = As<Float4>((i + Int4(127)) << 23); // Add single-precision bias, and shift into expon… in exponential2() 171 Float4 ff = As<Float4>(Int4(0x3AF61905)); // 1.8775767e-3f in exponential2() 172 ff = ff * f + As<Float4>(Int4(0x3C134806)); // 8.9893397e-3f in exponential2() 173 ff = ff * f + As<Float4>(Int4(0x3D64AA23)); // 5.5826318e-2f in exponential2() 174 ff = ff * f + As<Float4>(Int4(0x3E75EAD4)); // 2.4015361e-1f in exponential2() 175 ff = ff * f + As<Float4>(Int4(0x3F31727B)); // 6.9315308e-1f in exponential2() 190 x1 = As<Float4>(As<Int4>(x0) & Int4(0x7F800000)); in logarithm2() 191 x1 = As<Float4>(As<UInt4>(x1) >> 8); in logarithm2() [all …]
|
D | SpirvShaderImage.cpp | 84 …return rr::As<sw::SIMD::Float>((linear & rr::As<sw::SIMD::Int>(lc)) | (~linear & rr::As<sw::SIMD::… in sRGBtoLinear() 424 in[i] = As<SIMD::Float>(SIMD::Int(0)); in callSamplerFunction() 434 in[i] = As<SIMD::Float>(offsetValue.Int(j)); // Integer values, but transfered as float. in callSamplerFunction() 441 in[i] = As<SIMD::Float>(sampleValue.Int(0)); in callSamplerFunction() 672 SIMD::Int oobMask = As<SIMD::Int>(CmpNLT(As<SIMD::UInt>(u), width)); in GetTexelAddress() 677 oobMask |= As<SIMD::Int>(CmpNLT(As<SIMD::UInt>(v), height)); in GetTexelAddress() 684 oobMask |= As<SIMD::Int>(CmpNLT(As<SIMD::UInt>(w), SIMD::UInt(depth))); in GetTexelAddress() 690 oobMask |= As<SIMD::Int>(CmpNLT(As<SIMD::UInt>(sample), sampleCount)); in GetTexelAddress() 861 dst.move(0, halfToFloatBits(As<SIMD::UInt>(packed[0]) & SIMD::UInt(0x0000FFFF))); in EmitImageRead() 862 dst.move(1, halfToFloatBits((As<SIMD::UInt>(packed[0]) & SIMD::UInt(0xFFFF0000)) >> 16)); in EmitImageRead() [all …]
|
/third_party/skia/third_party/externals/tint/src/ |
D | castable_test.cc | 140 TEST(CastableBase, As) { in TEST() argument 145 ASSERT_EQ(frog->As<Animal>(), static_cast<Animal*>(frog.get())); in TEST() 146 ASSERT_EQ(bear->As<Animal>(), static_cast<Animal*>(bear.get())); in TEST() 147 ASSERT_EQ(gecko->As<Animal>(), static_cast<Animal*>(gecko.get())); in TEST() 149 ASSERT_EQ(frog->As<Amphibian>(), static_cast<Amphibian*>(frog.get())); in TEST() 150 ASSERT_EQ(bear->As<Amphibian>(), nullptr); in TEST() 151 ASSERT_EQ(gecko->As<Amphibian>(), nullptr); in TEST() 153 ASSERT_EQ(frog->As<Mammal>(), nullptr); in TEST() 154 ASSERT_EQ(bear->As<Mammal>(), static_cast<Mammal*>(bear.get())); in TEST() 155 ASSERT_EQ(gecko->As<Mammal>(), nullptr); in TEST() [all …]
|
/third_party/skia/third_party/externals/tint/fuzzers/tint_ast_fuzzer/mutations/ |
D | replace_identifier_test.cc | 55 main_fn_stmts[0]->As<ast::VariableDeclStatement>()->variable; in TEST() 59 main_fn_stmts[2]->As<ast::VariableDeclStatement>()->variable; in TEST() 63 main_fn_stmts[4]->As<ast::VariableDeclStatement>()->variable; in TEST() 72 const auto* sum_expr = b_var->constructor->As<ast::BinaryExpression>(); in TEST() 85 e_var->constructor->As<ast::MemberAccessorExpression>()->member); in TEST() 139 ->As<ast::AssignmentStatement>() in TEST() 172 ->As<ast::AssignmentStatement>() in TEST() 173 ->lhs->As<ast::UnaryOpExpression>() in TEST() 174 ->expr->As<ast::UnaryOpExpression>() in TEST() 201 ->As<ast::VariableDeclStatement>() in TEST() [all …]
|
/third_party/openGLES/extensions/NV/ |
D | NV_blend_square.txt | 78 SRC_COLOR (Rs, Gs, Bs, As) NEW 79 ONE_MINUS_SRC_COLOR (1, 1, 1, 1) - (Rs, Gs, Bs, As) NEW 82 SRC_ALPHA (As, As, As, As) / Ka 83 ONE_MINUS_SRC_ALPHA (1, 1, 1, 1) - (As, As, As, As) / Ka 93 source blending values they compute. f = min(As, 1 - Ad). 99 SRC_COLOR (Rs, Gs, Bs, As) 100 ONE_MINUS_SRC_COLOR (1, 1, 1, 1) - (Rs, Gs, Bs, As) 103 SRC_ALPHA (As, As, As, As) / Ka 104 ONE_MINUS_SRC_ALPHA (1, 1, 1, 1) - (As, As, As, As) / Ka
|
/third_party/skia/third_party/externals/opengl-registry/extensions/NV/ |
D | NV_blend_square.txt | 78 SRC_COLOR (Rs, Gs, Bs, As) NEW 79 ONE_MINUS_SRC_COLOR (1, 1, 1, 1) - (Rs, Gs, Bs, As) NEW 82 SRC_ALPHA (As, As, As, As) / Ka 83 ONE_MINUS_SRC_ALPHA (1, 1, 1, 1) - (As, As, As, As) / Ka 93 source blending values they compute. f = min(As, 1 - Ad). 99 SRC_COLOR (Rs, Gs, Bs, As) 100 ONE_MINUS_SRC_COLOR (1, 1, 1, 1) - (Rs, Gs, Bs, As) 103 SRC_ALPHA (As, As, As, As) / Ka 104 ONE_MINUS_SRC_ALPHA (1, 1, 1, 1) - (As, As, As, As) / Ka
|
/third_party/skia/third_party/externals/tint/src/writer/wgsl/ |
D | generator_impl.cc | 71 if (auto* td = decl->As<ast::TypeDecl>()) { in Generate() 75 } else if (auto* func = decl->As<ast::Function>()) { in Generate() 79 } else if (auto* var = decl->As<ast::Variable>()) { in Generate() 97 if (auto* alias = ty->As<ast::Alias>()) { in EmitTypeDecl() 104 } else if (auto* str = ty->As<ast::Struct>()) { in EmitTypeDecl() 119 if (auto* a = expr->As<ast::IndexAccessorExpression>()) { in EmitExpression() 122 if (auto* b = expr->As<ast::BinaryExpression>()) { in EmitExpression() 125 if (auto* b = expr->As<ast::BitcastExpression>()) { in EmitExpression() 128 if (auto* c = expr->As<ast::CallExpression>()) { in EmitExpression() 131 if (auto* i = expr->As<ast::IdentifierExpression>()) { in EmitExpression() [all …]
|
/third_party/skia/third_party/externals/tint/src/reader/spirv/ |
D | parser_impl_convert_type_test.cc | 199 EXPECT_TRUE(v2xf32->As<Vector>()->type->Is<F32>()); in TEST_F() 200 EXPECT_EQ(v2xf32->As<Vector>()->size, 2u); in TEST_F() 204 EXPECT_TRUE(v3xf32->As<Vector>()->type->Is<F32>()); in TEST_F() 205 EXPECT_EQ(v3xf32->As<Vector>()->size, 3u); in TEST_F() 209 EXPECT_TRUE(v4xf32->As<Vector>()->type->Is<F32>()); in TEST_F() 210 EXPECT_EQ(v4xf32->As<Vector>()->size, 4u); in TEST_F() 226 EXPECT_TRUE(v2xi32->As<Vector>()->type->Is<I32>()); in TEST_F() 227 EXPECT_EQ(v2xi32->As<Vector>()->size, 2u); in TEST_F() 231 EXPECT_TRUE(v3xi32->As<Vector>()->type->Is<I32>()); in TEST_F() 232 EXPECT_EQ(v3xi32->As<Vector>()->size, 3u); in TEST_F() [all …]
|
/third_party/skia/third_party/externals/tint/src/transform/ |
D | transform_test.cc | 65 ASSERT_TRUE(mat->As<ast::Matrix>()->type->Is<ast::F32>()); in TEST_F() 66 ASSERT_EQ(mat->As<ast::Matrix>()->columns, 3u); in TEST_F() 67 ASSERT_EQ(mat->As<ast::Matrix>()->rows, 2u); in TEST_F() 75 ASSERT_TRUE(vec->As<ast::Vector>()->type->Is<ast::F32>()); in TEST_F() 76 ASSERT_EQ(vec->As<ast::Vector>()->width, 2u); in TEST_F() 84 ASSERT_TRUE(arr->As<ast::Array>()->type->Is<ast::F32>()); in TEST_F() 85 ASSERT_EQ(arr->As<ast::Array>()->decorations.size(), 0u); in TEST_F() 87 auto* size = arr->As<ast::Array>()->count->As<ast::IntLiteralExpression>(); in TEST_F() 97 ASSERT_TRUE(arr->As<ast::Array>()->type->Is<ast::F32>()); in TEST_F() 98 ASSERT_EQ(arr->As<ast::Array>()->decorations.size(), 1u); in TEST_F() [all …]
|
/third_party/skia/third_party/externals/tint/src/writer/ |
D | append_vector_test.cc | 41 auto* vec_123 = As<ast::CallExpression>(append->Declaration()); in TEST_F() 55 auto* ctor = call->Target()->As<sem::TypeConstructor>(); in TEST_F() 58 EXPECT_EQ(ctor->ReturnType()->As<sem::Vector>()->Width(), 3u); in TEST_F() 59 EXPECT_TRUE(ctor->ReturnType()->As<sem::Vector>()->type()->Is<sem::I32>()); in TEST_F() 81 auto* vec_123 = As<ast::CallExpression>(append->Declaration()); in TEST_F() 86 auto* u32_to_i32 = vec_123->args[2]->As<ast::CallExpression>(); in TEST_F() 99 auto* ctor = call->Target()->As<sem::TypeConstructor>(); in TEST_F() 102 EXPECT_EQ(ctor->ReturnType()->As<sem::Vector>()->Width(), 3u); in TEST_F() 103 EXPECT_TRUE(ctor->ReturnType()->As<sem::Vector>()->type()->Is<sem::I32>()); in TEST_F() 127 auto* vec_123 = As<ast::CallExpression>(append->Declaration()); in TEST_F() [all …]
|
/third_party/skia/third_party/externals/opengl-registry/extensions/EXT/ |
D | EXT_blend_color.txt | 75 SRC_ALPHA (As, As, As, As) / Ka 76 ONE_MINUS_SRC_ALPHA (1, 1, 1, 1) - (As, As, As, As) / Ka 89 f = min(As, 1-Ad) / Ka. 95 SRC_COLOR (Rs/Kr, Gs/Kg, Bs/Kb, As/Ka) 96 ONE_MINUS_SRC_COLOR (1, 1, 1, 1) - (Rs/Kr,Gs/Kg,Bs/Kb,As/Ka) 97 SRC_ALPHA (As, As, As, As) / Ka 98 ONE_MINUS_SRC_ALPHA (1, 1, 1, 1) - (As, As, As, As) / Ka
|
D | EXT_blend_func_separate.txt | 68 SRC_ALPHA (As/Ka, As/Ka, As/Ka) As/Ka 69 ONE_MINUS_SRC_ALPHA (1-As/Ka, 1-As/Ka, 1-As/Ka) 1-As/Ka 82 SRC_COLOR (Rs/Kr, Gs/Kg, Bs/Kb) As/Ka 83 ONE_MINUS_SRC_COLOR (1-Rs/Kr, 1-Gs/Kg, 1-Bs/Kb) 1-As/Ka 84 SRC_ALPHA (As/Ka, As/Ka, As/Ka) As/Ka 85 ONE_MINUS_SRC_ALPHA (1-As/Ka, 1-As/Ka, 1-As/Ka) 1-As/Ka
|
/third_party/openGLES/extensions/EXT/ |
D | EXT_blend_color.txt | 75 SRC_ALPHA (As, As, As, As) / Ka 76 ONE_MINUS_SRC_ALPHA (1, 1, 1, 1) - (As, As, As, As) / Ka 89 f = min(As, 1-Ad) / Ka. 95 SRC_COLOR (Rs/Kr, Gs/Kg, Bs/Kb, As/Ka) 96 ONE_MINUS_SRC_COLOR (1, 1, 1, 1) - (Rs/Kr,Gs/Kg,Bs/Kb,As/Ka) 97 SRC_ALPHA (As, As, As, As) / Ka 98 ONE_MINUS_SRC_ALPHA (1, 1, 1, 1) - (As, As, As, As) / Ka
|
D | EXT_blend_func_separate.txt | 68 SRC_ALPHA (As/Ka, As/Ka, As/Ka) As/Ka 69 ONE_MINUS_SRC_ALPHA (1-As/Ka, 1-As/Ka, 1-As/Ka) 1-As/Ka 82 SRC_COLOR (Rs/Kr, Gs/Kg, Bs/Kb) As/Ka 83 ONE_MINUS_SRC_COLOR (1-Rs/Kr, 1-Gs/Kg, 1-Bs/Kb) 1-As/Ka 84 SRC_ALPHA (As/Ka, As/Ka, As/Ka) As/Ka 85 ONE_MINUS_SRC_ALPHA (1-As/Ka, 1-As/Ka, 1-As/Ka) 1-As/Ka
|
/third_party/skia/third_party/externals/tint/src/ast/ |
D | workgroup_decoration_test.cc | 31 EXPECT_EQ(values[0]->As<ast::IntLiteralExpression>()->ValueAsU32(), 2u); in TEST_F() 41 EXPECT_EQ(values[0]->As<ast::IntLiteralExpression>()->ValueAsU32(), 2u); in TEST_F() 44 EXPECT_EQ(values[1]->As<ast::IntLiteralExpression>()->ValueAsU32(), 4u); in TEST_F() 54 EXPECT_EQ(values[0]->As<ast::IntLiteralExpression>()->ValueAsU32(), 2u); in TEST_F() 57 EXPECT_EQ(values[1]->As<ast::IntLiteralExpression>()->ValueAsU32(), 4u); in TEST_F() 60 EXPECT_EQ(values[2]->As<ast::IntLiteralExpression>()->ValueAsU32(), 6u); in TEST_F() 68 EXPECT_EQ(values[0]->As<ast::IntLiteralExpression>()->ValueAsU32(), 2u); in TEST_F() 71 EXPECT_EQ(values[1]->As<ast::IntLiteralExpression>()->ValueAsU32(), 4u); in TEST_F() 73 auto* z_ident = As<ast::IdentifierExpression>(values[2]); in TEST_F()
|
/third_party/skia/third_party/externals/tint/src/reader/wgsl/ |
D | parser_impl_function_decoration_test.cc | 31 auto* func_deco = deco.value->As<ast::Decoration>(); in TEST_F() 35 auto values = func_deco->As<ast::WorkgroupDecoration>()->Values(); in TEST_F() 38 EXPECT_EQ(values[0]->As<ast::IntLiteralExpression>()->ValueAsU32(), 4u); in TEST_F() 51 auto* func_deco = deco.value->As<ast::Decoration>(); in TEST_F() 55 auto values = func_deco->As<ast::WorkgroupDecoration>()->Values(); in TEST_F() 58 EXPECT_EQ(values[0]->As<ast::IntLiteralExpression>()->ValueAsU32(), 4u); in TEST_F() 61 EXPECT_EQ(values[1]->As<ast::IntLiteralExpression>()->ValueAsU32(), 5u); in TEST_F() 73 auto* func_deco = deco.value->As<ast::Decoration>(); in TEST_F() 77 auto values = func_deco->As<ast::WorkgroupDecoration>()->Values(); in TEST_F() 80 EXPECT_EQ(values[0]->As<ast::IntLiteralExpression>()->ValueAsU32(), 4u); in TEST_F() [all …]
|
D | parser_impl_assignment_stmt_test.cc | 35 auto* ident = e->lhs->As<ast::IdentifierExpression>(); in TEST_F() 40 EXPECT_EQ(e->rhs->As<ast::SintLiteralExpression>()->value, 123); in TEST_F() 57 EXPECT_EQ(e->rhs->As<ast::SintLiteralExpression>()->value, 123); in TEST_F() 60 auto* mem = e->lhs->As<ast::MemberAccessorExpression>(); in TEST_F() 63 auto* ident = mem->member->As<ast::IdentifierExpression>(); in TEST_F() 67 auto* idx = mem->structure->As<ast::IndexAccessorExpression>(); in TEST_F() 71 EXPECT_EQ(idx->index->As<ast::SintLiteralExpression>()->value, 2); in TEST_F() 74 mem = idx->object->As<ast::MemberAccessorExpression>(); in TEST_F() 76 ident = mem->member->As<ast::IdentifierExpression>(); in TEST_F() 80 mem = mem->structure->As<ast::MemberAccessorExpression>(); in TEST_F() [all …]
|
/third_party/skia/third_party/externals/tint/src/resolver/ |
D | dependency_graph.cc | 143 if (auto* str = global->node->As<ast::Struct>()) { in Scan() 150 if (auto* alias = global->node->As<ast::Alias>()) { in Scan() 155 if (auto* func = global->node->As<ast::Function>()) { in Scan() 161 if (auto* var = global->node->As<ast::Variable>()) { in Scan() 206 if (auto* b = stmt->As<ast::AssignmentStatement>()) { in TraverseStatement() 211 if (auto* b = stmt->As<ast::BlockStatement>()) { in TraverseStatement() 217 if (auto* r = stmt->As<ast::CallStatement>()) { in TraverseStatement() 221 if (auto* l = stmt->As<ast::ForLoopStatement>()) { in TraverseStatement() 230 if (auto* l = stmt->As<ast::LoopStatement>()) { in TraverseStatement() 237 if (auto* i = stmt->As<ast::IfStatement>()) { in TraverseStatement() [all …]
|