mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-03 15:50:17 +01:00
util: add u_box_3d
This commit is contained in:
parent
5a91620417
commit
d6861be9cc
1 changed files with 19 additions and 0 deletions
|
|
@ -60,6 +60,25 @@ void u_box_2d_zslice( unsigned x,
|
|||
box->depth = 1;
|
||||
}
|
||||
|
||||
|
||||
static INLINE
|
||||
void u_box_3d( unsigned x,
|
||||
unsigned y,
|
||||
unsigned z,
|
||||
unsigned w,
|
||||
unsigned h,
|
||||
unsigned d,
|
||||
struct pipe_box *box )
|
||||
{
|
||||
box->x = x;
|
||||
box->y = y;
|
||||
box->z = z;
|
||||
box->width = w;
|
||||
box->height = h;
|
||||
box->depth = d;
|
||||
}
|
||||
|
||||
|
||||
static INLINE
|
||||
struct pipe_subresource u_subresource( unsigned face,
|
||||
unsigned level )
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue