On 11.01.2010 16:53, Keith Whitwell wrote: > On Mon, 2010-01-11 at 07:50 -0800, Roland Scheidegger wrote: >> On 11.01.2010 16:42, Keith Whitwell wrote: >>> On Mon, 2010-01-11 at 07:33 -0800, Roland Scheidegger wrote: >>>> Hi, >>>> >>>> I'll plan to merge gallium-noconstbuf today. It's a pretty simple API >>>> change, so things should continue to run :-). >>> Roland, >>> >>> Before you do this, can you make sure that the set_constant_buffer() >>> entrypoint is properly documented in gallium/docs? >> I was planning to do that after the merge, since the branch is too old >> to include docs, so I'd have to merge from master just for that if I'd >> do it before the merge. > > OK -- that's a decent excuse... Can you post a first draft of the docs > here before merging?
Ok here's a first stab. Actually I'm not sure how documentation should look like, there are no other functions really commented yet. Should these include function parameters / return values? Also I'll need to work on the syntax a bit I know... Roland
diff --git a/src/gallium/docs/source/context.rst b/src/gallium/docs/source/context.rst index 21f5f91..a6fe408 100644 --- a/src/gallium/docs/source/context.rst +++ b/src/gallium/docs/source/context.rst @@ -34,6 +34,12 @@ buffers, surfaces) are bound to the driver. * ``set_constant_buffer`` + void (*set_constant_buffer)( struct pipe_context *, + uint shader, uint index, + struct pipe_constant_buffer *buf ); + sets a constant buffer to be used in a given shader type. index is + used to indicate which buffer to set (note that some apis allow multiple ones + to be set, though drivers are mostly restricted to the first one right now). * ``set_framebuffer_state`` * ``set_fragment_sampler_textures`` * ``set_vertex_sampler_textures``
------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________ Mesa3d-dev mailing list Mesa3d-dev@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mesa3d-dev