From 1a7b2f7e9577a822b53fca20f0797940aaafaab1 Mon Sep 17 00:00:00 2001
From: Corbin Simpson This state describes how resources in various flavours (textures,
+buffers, surfaces) are bound to the driver. These pieces of state are too small, variable, and/or trivial to have CSO
@@ -77,42 +89,61 @@ objects. They all follow simple, one-method binding calls, e.g.
clear initializes some or all of the surfaces currently bound to
+the framebuffer to particular RGBA, depth, or stencil values. Clear is one of the most difficult concepts to nail down to a single
+interface and it seems likely that we will want to add additional
+clear paths, for instance clearing surfaces not bound to the
+framebuffer, or read-modify-write clears such as depth-only or
+stencil-only clears of packed depth-stencil buffers. Queries gather some statistic from the 3D pipeline over one or more
+draws. Queries may be nested, though no state tracker currently
+exercises this. Queries can be created with create_query and deleted with
destroy_query. To enable a query, use begin_query, and when finished,
use end_query to stop the query. Finally, get_query_result is used
to retrieve the results. draw_arrays draw_elements draw_range_elements flush These methods emulate classic blitter controls. They are not guaranteed to be
available; if they are set to NULL, then they are not present. These methods operate directly on pipe_surface objects, and stand
+apart from any 3D state in the context. Blitting functionality may be
+moved to a separate abstraction at some point in the future. surface_fill performs a fill operation on a section of a surface. surface_copy blits a region of a surface to a region of another surface,
provided that both surfaces are the same format. The source and destination
may be the same surface, and overlapping blits are permitted. clear initializes entire buffers to an RGBA, depth, or stencil value,
-depending on the formats of the buffers. Use set_framebuffer_state to
-specify the buffers to clear. The interfaces to these calls are likely to change to make it easier
+for a driver to batch multiple blits with the same source and
+destination.Resource Binding State¶
+
+
+Non-CSO State¶
Clearing¶
+Queries¶
+VBO Drawing¶
-Flushing¶
Surface Drawing¶
+
+Blitting¶