1 2#ifndef U_TRANSFER_H 3#define U_TRANSFER_H 4 5#include "pipe/p_state.h" 6 7struct pipe_context; 8struct winsys_handle; 9 10#ifdef __cplusplus 11extern "C" { 12#endif 13 14void u_default_buffer_subdata(struct pipe_context *pipe, 15 struct pipe_resource *resource, 16 unsigned usage, unsigned offset, 17 unsigned size, const void *data); 18 19void u_default_clear_buffer(struct pipe_context *pipe, 20 struct pipe_resource *resource, 21 unsigned offset, unsigned size, 22 const void *clear_value, 23 int clear_value_size); 24 25void u_default_texture_subdata(struct pipe_context *pipe, 26 struct pipe_resource *resource, 27 unsigned level, 28 unsigned usage, 29 const struct pipe_box *box, 30 const void *data, 31 unsigned stride, 32 unsigned layer_stride); 33 34void u_default_transfer_flush_region( struct pipe_context *pipe, 35 struct pipe_transfer *transfer, 36 const struct pipe_box *box); 37 38#ifdef __cplusplus 39} // extern "C" { 40#endif 41 42#endif 43