Home | History | Annotate | Download | only in tests

Lines Matching refs:layout

17     SkSL::MemoryLayout layout(SkSL::MemoryLayout::k140_Standard);
20 REPORTER_ASSERT(r, 4 == layout.size(*context.fFloat_Type));
21 REPORTER_ASSERT(r, 8 == layout.size(*context.fVec2_Type));
22 REPORTER_ASSERT(r, 12 == layout.size(*context.fVec3_Type));
23 REPORTER_ASSERT(r, 16 == layout.size(*context.fVec4_Type));
24 REPORTER_ASSERT(r, 4 == layout.size(*context.fInt_Type));
25 REPORTER_ASSERT(r, 8 == layout.size(*context.fIVec2_Type));
26 REPORTER_ASSERT(r, 12 == layout.size(*context.fIVec3_Type));
27 REPORTER_ASSERT(r, 16 == layout.size(*context.fIVec4_Type));
28 REPORTER_ASSERT(r, 1 == layout.size(*context.fBool_Type));
29 REPORTER_ASSERT(r, 2 == layout.size(*context.fBVec2_Type));
30 REPORTER_ASSERT(r, 3 == layout.size(*context.fBVec3_Type));
31 REPORTER_ASSERT(r, 4 == layout.size(*context.fBVec4_Type));
32 REPORTER_ASSERT(r, 32 == layout.size(*context.fMat2x2_Type));
33 REPORTER_ASSERT(r, 32 == layout.size(*context.fMat2x4_Type));
34 REPORTER_ASSERT(r, 48 == layout.size(*context.fMat3x3_Type));
35 REPORTER_ASSERT(r, 64 == layout.size(*context.fMat4x2_Type));
36 REPORTER_ASSERT(r, 64 == layout.size(*context.fMat4x4_Type));
37 REPORTER_ASSERT(r, 4 == layout.alignment(*context.fFloat_Type));
38 REPORTER_ASSERT(r, 8 == layout.alignment(*context.fVec2_Type));
39 REPORTER_ASSERT(r, 16 == layout.alignment(*context.fVec3_Type));
40 REPORTER_ASSERT(r, 16 == layout.alignment(*context.fVec4_Type));
41 REPORTER_ASSERT(r, 4 == layout.alignment(*context.fInt_Type));
42 REPORTER_ASSERT(r, 8 == layout.alignment(*context.fIVec2_Type));
43 REPORTER_ASSERT(r, 16 == layout.alignment(*context.fIVec3_Type));
44 REPORTER_ASSERT(r, 16 == layout.alignment(*context.fIVec4_Type));
45 REPORTER_ASSERT(r, 1 == layout.alignment(*context.fBool_Type));
46 REPORTER_ASSERT(r, 2 == layout.alignment(*context.fBVec2_Type));
47 REPORTER_ASSERT(r, 4 == layout.alignment(*context.fBVec3_Type));
48 REPORTER_ASSERT(r, 4 == layout.alignment(*context.fBVec4_Type));
49 REPORTER_ASSERT(r, 16 == layout.alignment(*context.fMat2x2_Type));
50 REPORTER_ASSERT(r, 16 == layout.alignment(*context.fMat2x4_Type));
51 REPORTER_ASSERT(r, 16 == layout.alignment(*context.fMat3x3_Type));
52 REPORTER_ASSERT(r, 16 == layout.alignment(*context.fMat4x2_Type));
53 REPORTER_ASSERT(r, 16 == layout.alignment(*context.fMat4x4_Type));
59 REPORTER_ASSERT(r, 16 == layout.size(s1));
60 REPORTER_ASSERT(r, 16 == layout.alignment(s1));
64 REPORTER_ASSERT(r, 16 == layout.size(s2));
65 REPORTER_ASSERT(r, 16 == layout.alignment(s2));
69 REPORTER_ASSERT(r, 32 == layout.size(s3));
70 REPORTER_ASSERT(r, 16 == layout.alignment(s3));
76 REPORTER_ASSERT(r, 16 == layout.size(s4));
77 REPORTER_ASSERT(r, 16 == layout.alignment(s4));
81 REPORTER_ASSERT(r, 32 == layout.size(s5));
82 REPORTER_ASSERT(r, 16 == layout.alignment(s5));
86 REPORTER_ASSERT(r, 64 == layout.size(array1));
87 REPORTER_ASSERT(r, 16 == layout.alignment(array1));
88 REPORTER_ASSERT(r, 16 == layout.stride(array1));
91 REPORTER_ASSERT(r, 64 == layout.size(array2));
92 REPORTER_ASSERT(r, 16 == layout.alignment(array2));
93 REPORTER_ASSERT(r, 16 == layout.stride(array2));
98 SkSL::MemoryLayout layout(SkSL::MemoryLayout::k430_Standard);
101 REPORTER_ASSERT(r, 4 == layout.size(*context.fFloat_Type));
102 REPORTER_ASSERT(r, 8 == layout.size(*context.fVec2_Type));
103 REPORTER_ASSERT(r, 12 == layout.size(*context.fVec3_Type));
104 REPORTER_ASSERT(r, 16 == layout.size(*context.fVec4_Type));
105 REPORTER_ASSERT(r, 4 == layout.size(*context.fInt_Type));
106 REPORTER_ASSERT(r, 8 == layout.size(*context.fIVec2_Type));
107 REPORTER_ASSERT(r, 12 == layout.size(*context.fIVec3_Type));
108 REPORTER_ASSERT(r, 16 == layout.size(*context.fIVec4_Type));
109 REPORTER_ASSERT(r, 1 == layout.size(*context.fBool_Type));
110 REPORTER_ASSERT(r, 2 == layout.size(*context.fBVec2_Type));
111 REPORTER_ASSERT(r, 3 == layout.size(*context.fBVec3_Type));
112 REPORTER_ASSERT(r, 4 == layout.size(*context.fBVec4_Type));
113 REPORTER_ASSERT(r, 16 == layout.size(*context.fMat2x2_Type));
114 REPORTER_ASSERT(r, 32 == layout.size(*context.fMat2x4_Type));
115 REPORTER_ASSERT(r, 48 == layout.size(*context.fMat3x3_Type));
116 REPORTER_ASSERT(r, 32 == layout.size(*context.fMat4x2_Type));
117 REPORTER_ASSERT(r, 64 == layout.size(*context.fMat4x4_Type));
118 REPORTER_ASSERT(r, 4 == layout.alignment(*context.fFloat_Type));
119 REPORTER_ASSERT(r, 8 == layout.alignment(*context.fVec2_Type));
120 REPORTER_ASSERT(r, 16 == layout.alignment(*context.fVec3_Type));
121 REPORTER_ASSERT(r, 16 == layout.alignment(*context.fVec4_Type));
122 REPORTER_ASSERT(r, 4 == layout.alignment(*context.fInt_Type));
123 REPORTER_ASSERT(r, 8 == layout.alignment(*context.fIVec2_Type));
124 REPORTER_ASSERT(r, 16 == layout.alignment(*context.fIVec3_Type));
125 REPORTER_ASSERT(r, 16 == layout.alignment(*context.fIVec4_Type));
126 REPORTER_ASSERT(r, 1 == layout.alignment(*context.fBool_Type));
127 REPORTER_ASSERT(r, 2 == layout.alignment(*context.fBVec2_Type));
128 REPORTER_ASSERT(r, 4 == layout.alignment(*context.fBVec3_Type));
129 REPORTER_ASSERT(r, 4 == layout.alignment(*context.fBVec4_Type));
130 REPORTER_ASSERT(r, 8 == layout.alignment(*context.fMat2x2_Type));
131 REPORTER_ASSERT(r, 16 == layout.alignment(*context.fMat2x4_Type));
132 REPORTER_ASSERT(r, 16 == layout.alignment(*context.fMat3x3_Type));
133 REPORTER_ASSERT(r, 8 == layout.alignment(*context.fMat4x2_Type));
134 REPORTER_ASSERT(r, 16 == layout.alignment(*context.fMat4x4_Type));
140 REPORTER_ASSERT(r, 16 == layout.size(s1));
141 REPORTER_ASSERT(r, 16 == layout.alignment(s1));
145 REPORTER_ASSERT(r, 16 == layout.size(s2));
146 REPORTER_ASSERT(r, 16 == layout.alignment(s2));
150 REPORTER_ASSERT(r, 32 == layout.size(s3));
151 REPORTER_ASSERT(r, 16 == layout.alignment(s3));
157 REPORTER_ASSERT(r, 4 == layout.size(s4));
158 REPORTER_ASSERT(r, 4 == layout.alignment(s4));
162 REPORTER_ASSERT(r, 32 == layout.size(s5));
163 REPORTER_ASSERT(r, 16 == layout.alignment(s5));
167 REPORTER_ASSERT(r, 16 == layout.size(array1));
168 REPORTER_ASSERT(r, 4 == layout.alignment(array1));
169 REPORTER_ASSERT(r, 4 == layout.stride(array1));
172 REPORTER_ASSERT(r, 64 == layout.size(array2));
173 REPORTER_ASSERT(r, 16 == layout.alignment(array2));
174 REPORTER_ASSERT(r, 16 == layout.stride(array2));