13464ebd5Sriastradh/************************************************************************** 23464ebd5Sriastradh * 33464ebd5Sriastradh * Copyright 2010 VMware, Inc. 43464ebd5Sriastradh * All Rights Reserved. 53464ebd5Sriastradh * 63464ebd5Sriastradh * Permission is hereby granted, free of charge, to any person obtaining a 73464ebd5Sriastradh * copy of this software and associated documentation files (the 83464ebd5Sriastradh * "Software"), to deal in the Software without restriction, including 93464ebd5Sriastradh * without limitation the rights to use, copy, modify, merge, publish, 103464ebd5Sriastradh * distribute, sub license, and/or sell copies of the Software, and to 113464ebd5Sriastradh * permit persons to whom the Software is furnished to do so, subject to 123464ebd5Sriastradh * the following conditions: 133464ebd5Sriastradh * 143464ebd5Sriastradh * The above copyright notice and this permission notice (including the 153464ebd5Sriastradh * next paragraph) shall be included in all copies or substantial portions 163464ebd5Sriastradh * of the Software. 173464ebd5Sriastradh * 183464ebd5Sriastradh * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 193464ebd5Sriastradh * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 203464ebd5Sriastradh * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. 213464ebd5Sriastradh * IN NO EVENT SHALL VMWARE AND/OR ITS SUPPLIERS BE LIABLE FOR 223464ebd5Sriastradh * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 233464ebd5Sriastradh * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 243464ebd5Sriastradh * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 253464ebd5Sriastradh * 263464ebd5Sriastradh **************************************************************************/ 273464ebd5Sriastradh 283464ebd5Sriastradh 293464ebd5Sriastradh#ifndef U_SAMPLER_H 303464ebd5Sriastradh#define U_SAMPLER_H 313464ebd5Sriastradh 323464ebd5Sriastradh 333464ebd5Sriastradh#include "pipe/p_defines.h" 343464ebd5Sriastradh#include "pipe/p_format.h" 353464ebd5Sriastradh#include "pipe/p_state.h" 363464ebd5Sriastradh 373464ebd5Sriastradh#ifdef __cplusplus 383464ebd5Sriastradhextern "C" { 393464ebd5Sriastradh#endif 403464ebd5Sriastradh 413464ebd5Sriastradh 423464ebd5Sriastradhvoid 433464ebd5Sriastradhu_sampler_view_default_template(struct pipe_sampler_view *view, 443464ebd5Sriastradh const struct pipe_resource *texture, 453464ebd5Sriastradh enum pipe_format format); 463464ebd5Sriastradh 473464ebd5Sriastradhvoid 483464ebd5Sriastradhu_sampler_view_default_dx9_template(struct pipe_sampler_view *view, 493464ebd5Sriastradh const struct pipe_resource *texture, 503464ebd5Sriastradh enum pipe_format format); 513464ebd5Sriastradh 523464ebd5Sriastradh 533464ebd5Sriastradh#ifdef __cplusplus 543464ebd5Sriastradh} /* extern "C" { */ 553464ebd5Sriastradh#endif 563464ebd5Sriastradh 573464ebd5Sriastradh#endif /* U_SAMPLER_H */ 58