gallium: added comments to pipe_transfer
authorBrian Paul <brianp@vmware.com>
Sat, 29 Jan 2011 03:25:27 +0000 (20:25 -0700)
committerBrian Paul <brianp@vmware.com>
Sat, 29 Jan 2011 03:25:27 +0000 (20:25 -0700)
src/gallium/include/pipe/p_state.h

index d5c767add60e884ba881026da03363f86914897f..574a7a801115f09061e67356078afbf2d25bcae3 100644 (file)
@@ -390,11 +390,11 @@ struct pipe_stream_output_state
 struct pipe_transfer
 {
    struct pipe_resource *resource; /**< resource to transfer to/from  */
-   unsigned level;
+   unsigned level;                 /**< texture mipmap level */
    enum pipe_transfer_usage usage;
-   struct pipe_box box;
-   unsigned stride;
-   unsigned layer_stride;
+   struct pipe_box box;            /**< region of the resource to access */
+   unsigned stride;                /**< row stride in bytes */
+   unsigned layer_stride;          /**< image/layer stride in bytes */
    void *data;
 };