From f14c5adbc78b010d1b07eee9f0f65a99d0df4248 Mon Sep 17 00:00:00 2001 From: José Fonseca Date: Thu, 1 Apr 2010 17:35:46 +0100 Subject: st/python: Allow to sample only in the [0,1] range. --- src/gallium/state_trackers/python/st_sample.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/gallium/state_trackers/python/st_sample.h') diff --git a/src/gallium/state_trackers/python/st_sample.h b/src/gallium/state_trackers/python/st_sample.h index 6fb8417add..2fdbb391f3 100644 --- a/src/gallium/state_trackers/python/st_sample.h +++ b/src/gallium/state_trackers/python/st_sample.h @@ -40,12 +40,14 @@ void st_sample_pixel_block(enum pipe_format format, void *raw, float *rgba, unsigned rgba_stride, - unsigned w, unsigned h); + unsigned w, unsigned h, + boolean norm); void st_sample_surface(struct pipe_context *pipe, struct st_surface *surface, - float *rgba); + float *rgba, + boolean norm); #endif /* ST_SAMPLE_H_ */ -- cgit v1.2.3