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_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 25 void 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 34 void 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