Initial function is just a simple resource create for a 1D resourcemacos/master
parent
797dfc028b
commit
8e391a0b86
@ -0,0 +1,21 @@ |
||||
/* helper functions for testing purposes */ |
||||
#include "pipe/p_defines.h" |
||||
#include "pipe/p_format.h" |
||||
#include "testvirgl.h" |
||||
|
||||
#include "virglrenderer.h" |
||||
|
||||
void testvirgl_init_simple_1d_resource(struct virgl_renderer_resource_create_args *res, int handle) |
||||
{ |
||||
res->handle = handle; |
||||
res->target = PIPE_TEXTURE_1D; |
||||
res->format = PIPE_FORMAT_B8G8R8X8_UNORM; |
||||
res->width = 50; |
||||
res->height = 50; |
||||
res->depth = 1; |
||||
res->array_size = 1; |
||||
res->last_level = 0; |
||||
res->nr_samples = 0; |
||||
res->bind = PIPE_BIND_SAMPLER_VIEW; |
||||
res->flags = 0; |
||||
} |
@ -0,0 +1,8 @@ |
||||
#ifndef TESTVIRGL_H |
||||
#define TESTVIRGL_H |
||||
|
||||
#include "virglrenderer.h" |
||||
|
||||
void testvirgl_init_simple_1d_resource(struct virgl_renderer_resource_create_args *args, int handle); |
||||
|
||||
#endif |
Loading…
Reference in new issue