Lines Matching defs:box
9 u_box_1d(unsigned x, unsigned w, struct pipe_box *box)
11 box->x = x;
12 box->y = 0;
13 box->z = 0;
14 box->width = w;
15 box->height = 1;
16 box->depth = 1;
20 u_box_2d(unsigned x,unsigned y, unsigned w, unsigned h, struct pipe_box *box)
22 box->x = x;
23 box->y = y;
24 box->z = 0;
25 box->width = w;
26 box->height = h;
27 box->depth = 1;
31 u_box_origin_2d(unsigned w, unsigned h, struct pipe_box *box)
33 box->x = 0;
34 box->y = 0;
35 box->z = 0;
36 box->width = w;
37 box->height = h;
38 box->depth = 1;
43 unsigned w, unsigned h, struct pipe_box *box)
45 box->x = x;
46 box->y = y;
47 box->z = z;
48 box->width = w;
49 box->height = h;
50 box->depth = 1;
56 struct pipe_box *box)
58 box->x = x;
59 box->y = y;
60 box->z = z;
61 box->width = w;
62 box->height = h;
63 box->depth = d;
67 * Returns -1 if the resulting box would be empty (then @dst is left unchanged).
76 const struct pipe_box *box, int w, int h)
83 if (!box->width || !box->height)
87 a[0] = box->x;
88 a[1] = box->y;
89 b[0] = box->x + box->width;
90 b[1] = box->y + box->height;
118 u_box_volume_3d(const struct pipe_box *box)
120 return (int64_t)box->width * box->height * box->depth;
243 /* Converts a box specified in pixels to an equivalent box specified