docs: clean up sampler description

This commit is contained in:
Roland Scheidegger
2010-01-21 20:22:24 +01:00
parent eba1e2a447
commit c6c9d3b091
2 changed files with 8 additions and 4 deletions

View File

@@ -12,8 +12,6 @@ with the traditional (S, T, R, Q) notation.
Members Members
------- -------
XXX undocumented compare_mode, compare_func
wrap_s wrap_s
How to wrap the S coordinate. One of PIPE_TEX_WRAP. How to wrap the S coordinate. One of PIPE_TEX_WRAP.
wrap_t wrap_t
@@ -27,12 +25,18 @@ min_mip_filter
PIPE_TEX_FILTER. PIPE_TEX_FILTER.
mag_img_filter mag_img_filter
The filter to use when magnifying texels. One of PIPE_TEX_FILTER. The filter to use when magnifying texels. One of PIPE_TEX_FILTER.
compare_mode
If set to PIPE_TEX_COMPARE_R_TO_TEXTURE, texture output is computed
according to compare_func, using r coord and the texture value as operands.
If set to PIPE_TEX_COMPARE_NONE, no comparison calculation is performed.
compare_func
How the comparison is computed. One of PIPE_FUNC.
normalized_coords normalized_coords
Whether the texture coordinates are normalized. If normalized, they will Whether the texture coordinates are normalized. If normalized, they will
always be in [0, 1]. If not, they will be in the range of each dimension always be in [0, 1]. If not, they will be in the range of each dimension
of the loaded texture. of the loaded texture.
prefilter prefilter
XXX From the Doxy, "weird sampling state exposed by some APIs." Refine. Cylindrical texcoord wrap enable per coord. Not exposed by most APIs.
lod_bias lod_bias
The bias to apply to the level of detail. The bias to apply to the level of detail.
min_lod min_lod

View File

@@ -274,7 +274,7 @@ struct pipe_sampler_state
unsigned compare_mode:1; /**< PIPE_TEX_COMPARE_x */ unsigned compare_mode:1; /**< PIPE_TEX_COMPARE_x */
unsigned compare_func:3; /**< PIPE_FUNC_x */ unsigned compare_func:3; /**< PIPE_FUNC_x */
unsigned normalized_coords:1; /**< Are coords normalized to [0,1]? */ unsigned normalized_coords:1; /**< Are coords normalized to [0,1]? */
unsigned prefilter:4; /**< Wierd sampling state exposed by some api's */ unsigned prefilter:4; /**< Cylindrical texcoord wrap, per coord, exposed by some api's */
float lod_bias; /**< LOD/lambda bias */ float lod_bias; /**< LOD/lambda bias */
float min_lod, max_lod; /**< LOD clamp range, after bias */ float min_lod, max_lod; /**< LOD clamp range, after bias */
float border_color[4]; float border_color[4];