Lines Matching refs:Declare
144 EXPECT_EQUAL(Declare(x), "int x;"); in DEF_GPUTEST_FOR_MOCK_CONTEXT()
156 EXPECT_EQUAL(Declare(x), "int _0_x;"); in DEF_GPUTEST_FOR_MOCK_CONTEXT()
1234 EXPECT_EQUAL(Block(Declare(a), Declare(b), a = b), "{ int a = 1; int b = 2; (a = b); }"); in DEF_GPUTEST_FOR_MOCK_CONTEXT()
1248 For(Declare(i), i < 10, ++i, Block( in DEF_GPUTEST_FOR_MOCK_CONTEXT()
1268 For(Declare(i), i < 10, ++i, Block( in DEF_GPUTEST_FOR_MOCK_CONTEXT()
1287 Statement x = Declare(a); in DEF_GPUTEST_FOR_MOCK_CONTEXT()
1289 Statement y = Declare(b); in DEF_GPUTEST_FOR_MOCK_CONTEXT()
1295 Declare(c).release(); in DEF_GPUTEST_FOR_MOCK_CONTEXT()
1300 Declare(d).release(); in DEF_GPUTEST_FOR_MOCK_CONTEXT()
1302 Declare(d).release(); in DEF_GPUTEST_FOR_MOCK_CONTEXT()
1308 Declare(e).release(); in DEF_GPUTEST_FOR_MOCK_CONTEXT()
1350 EXPECT_EQUAL(For(Declare(i), i < 10, ++i, i += 5), in DEF_GPUTEST_FOR_MOCK_CONTEXT()
1355 EXPECT_EQUAL(For((Declare(j), Declare(k)), j < k, ++j, Block()), R"( in DEF_GPUTEST_FOR_MOCK_CONTEXT()
1447 Declare(x), in DEF_GPUTEST_FOR_MOCK_CONTEXT()
1471 Declare(p).release(); in DEF_GPUTEST_FOR_MOCK_CONTEXT()
1482 Declare(p).release(); in DEF_GPUTEST_FOR_MOCK_CONTEXT()
1644 EXPECT_EQUAL(Statement(Block(Declare(a), a = 123)), in DEF_GPUTEST_FOR_MOCK_CONTEXT()
1750 Statement d1 = Declare(v1); in DEF_GPUTEST_FOR_MOCK_CONTEXT()
1794 EXPECT_EQUAL(Declare(v1), "layout (location = 1, offset = 4, binding = 3, index = 5, set = 2, " in DEF_GPUTEST_FOR_MOCK_CONTEXT()
1798 EXPECT_EQUAL(Declare(v2), "layout (origin_upper_left) float2 v2;"); in DEF_GPUTEST_FOR_MOCK_CONTEXT()
1801 EXPECT_EQUAL(Declare(v3), "layout (override_coverage) half v3;"); in DEF_GPUTEST_FOR_MOCK_CONTEXT()
1804 EXPECT_EQUAL(Declare(v4), "layout (push_constant) bool v4;"); in DEF_GPUTEST_FOR_MOCK_CONTEXT()
1807 EXPECT_EQUAL(Declare(v5), "layout (blend_support_all_equations) half4 v5;"); in DEF_GPUTEST_FOR_MOCK_CONTEXT()
1915 Declare(result), in DEF_GPUTEST_FOR_MOCK_CONTEXT()