diff options
author | Marek Olšák <maraeo@gmail.com> | 2012-04-24 19:52:26 +0200 |
---|---|---|
committer | Marek Olšák <maraeo@gmail.com> | 2012-04-30 01:09:57 +0200 |
commit | 507337864fa80caf9f26602324d2c28dd0a75d61 (patch) | |
tree | 94ec3c69d93f5dc70f0f042c1dbc11fe01a8550c /src/gallium/include/pipe/p_state.h | |
parent | 1b749dc34f8d83cf3dfa863279b1fe2b356d34b2 (diff) | |
download | external_mesa3d-507337864fa80caf9f26602324d2c28dd0a75d61.zip external_mesa3d-507337864fa80caf9f26602324d2c28dd0a75d61.tar.gz external_mesa3d-507337864fa80caf9f26602324d2c28dd0a75d61.tar.bz2 |
gallium: change set_constant_buffer to be UBO-friendly
Diffstat (limited to 'src/gallium/include/pipe/p_state.h')
-rw-r--r-- | src/gallium/include/pipe/p_state.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/gallium/include/pipe/p_state.h b/src/gallium/include/pipe/p_state.h index a459a56..42510a6 100644 --- a/src/gallium/include/pipe/p_state.h +++ b/src/gallium/include/pipe/p_state.h @@ -451,6 +451,17 @@ struct pipe_vertex_buffer /** + * A constant buffer. A subrange of an existing buffer can be set + * as a constant buffer. + */ +struct pipe_constant_buffer { + struct pipe_resource *buffer; /**< the actual buffer */ + unsigned buffer_offset; /**< offset to start of data in buffer, in bytes */ + unsigned buffer_size; /**< how much data can be read in shader */ +}; + + +/** * A stream output target. The structure specifies the range vertices can * be written to. * |