diff options
author | Michal Krol <[email protected]> | 2009-12-23 19:37:18 +0100 |
---|---|---|
committer | Michal Krol <[email protected]> | 2009-12-23 19:37:18 +0100 |
commit | d0b55120beb4848be5e7ef24f0301f8397baa8be (patch) | |
tree | 5cacf122776bc77678f3ee8a78d121bd3cca709e /src/gallium/include/pipe/p_context.h | |
parent | b5a408bae518ededbb871d113dab89f3e15bfb45 (diff) |
gallium: Add interfaces needed for instanced drawing.
Diffstat (limited to 'src/gallium/include/pipe/p_context.h')
-rw-r--r-- | src/gallium/include/pipe/p_context.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/gallium/include/pipe/p_context.h b/src/gallium/include/pipe/p_context.h index 11bcdc0a24c..d5d1e0e76bc 100644 --- a/src/gallium/include/pipe/p_context.h +++ b/src/gallium/include/pipe/p_context.h @@ -69,6 +69,22 @@ struct pipe_context { unsigned indexSize, unsigned mode, unsigned start, unsigned count); + boolean (*draw_arrays_instanced)(struct pipe_context *pipe, + unsigned mode, + unsigned start, + unsigned count, + unsigned startInstance, + unsigned instanceCount); + + boolean (*draw_elements_instanced)(struct pipe_context *pipe, + struct pipe_buffer *indexBuffer, + unsigned indexSize, + unsigned mode, + unsigned start, + unsigned count, + unsigned startInstance, + unsigned instanceCount); + /* XXX: this is (probably) a temporary entrypoint, as the range * information should be available from the vertex_buffer state. * Using this to quickly evaluate a specialized path in the draw |