1 2 #ifndef U_TRANSFER_H 3 #define U_TRANSFER_H 4 5 #include "pipe/p_state.h" 6 7 struct pipe_context; 8 struct winsys_handle; 9 10 #ifdef __cplusplus 11 extern "C" { 12 #endif 13 14 void 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 19 void u_default_texture_subdata(struct pipe_context *pipe, 20 struct pipe_resource *resource, 21 unsigned level, 22 unsigned usage, 23 const struct pipe_box *box, 24 const void *data, 25 unsigned stride, 26 unsigned layer_stride); 27 28 void u_default_transfer_flush_region( struct pipe_context *pipe, 29 struct pipe_transfer *transfer, 30 const struct pipe_box *box); 31 32 #ifdef __cplusplus 33 } // extern "C" { 34 #endif 35 36 #endif 37