diff options
author | Corbin Simpson <MostAwesomeDude@gmail.com> | 2010-01-18 15:09:30 -0800 |
---|---|---|
committer | Corbin Simpson <MostAwesomeDude@gmail.com> | 2010-01-18 15:30:28 -0800 |
commit | 9811ebf61f5d1220ef0c7e33e6677304e9b31052 (patch) | |
tree | 58012cdfb6c733e0b1838fe6fa297fea56cbe4ac /src | |
parent | 0714474ae225d12ea00da683785600c0c211f901 (diff) |
docs: PIPE_TEXTURE_USAGE info.
From IRC with Jakob.
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/docs/source/screen.rst | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/gallium/docs/source/screen.rst b/src/gallium/docs/source/screen.rst index 9631e6967e..8cb7c70cd3 100644 --- a/src/gallium/docs/source/screen.rst +++ b/src/gallium/docs/source/screen.rst @@ -3,6 +3,26 @@ Screen A screen is an object representing the context-independent part of a device. +Useful Flags +------------ + +PIPE_TEXTURE_USAGE +^^^^^^^^^^^^^^^^^^ + +These flags determine the possible roles a texture may be used for during its +lifetime. Texture usage flags are cumulative and may be combined to create a +texture that can be used as multiple things. + +* ``RENDER_TARGET``: A colorbuffer or pixelbuffer. +* ``DISPLAY_TARGET``: A sharable buffer that can be given to another process. +* ``PRIMARY``: A frontbuffer or scanout buffer. +* ``DEPTH_STENCIL``: A depthbuffer, stencilbuffer, or Z buffer. Gallium does + not explicitly provide for stencil-only buffers, so any stencilbuffer + validated here is implicitly also a depthbuffer. +* ``SAMPLER``: A texture that may be sampled from in a fragment or vertex + shader. +* ``DYNAMIC``: XXX undefined + Methods ------- @@ -33,6 +53,10 @@ is_format_supported See if a format can be used in a specific manner. +**usage** is a bitmask of ``PIPE_TEXTURE_USAGE`` flags. + +Returns TRUE if all usages can be satisfied. + texture_create ^^^^^^^^^^^^^^ |