Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
TextureFilter.cs
Go to the documentation of this file.
1 // Copyright (c) 2014 Silicon Studio Corp. (http://siliconstudio.co.jp)
2 // This file is distributed under GPL v3. See LICENSE.md for details.
3 using SiliconStudio.Core;
4 
5 namespace SiliconStudio.Paradox.Graphics
6 {
7  /// <summary>
8  /// Filtering options during texture sampling.
9  /// </summary>
10  /// <remarks>
11  /// During texture sampling, one or more texels are read and combined (this is calling filtering) to produce a single value. Point sampling reads a single texel while linear sampling reads two texels (endpoints) and linearly interpolates a third value between the endpoints. HLSL texture-sampling functions also support comparison filtering during texture sampling. Comparison filtering compares each sampled texel against a comparison value. The boolean result is blended the same way that normal texture filtering is blended. You can use HLSL intrinsic texture-sampling functions that implement texture filtering only or companion functions that use texture filtering with comparison filtering. Texture Sampling FunctionTexture Sampling Function with Comparison Filtering samplesamplecmp or samplecmplevelzero ? Comparison filters only work with textures that have the following DXGI formats: R32_FLOAT_X8X24_TYPELESS, R32_FLOAT, R24_UNORM_X8_TYPELESS, R16_UNORM.
12  /// </remarks>
13  [DataContract("TextureFilter")]
14  public enum TextureFilter
15  {
16  /// <summary>
17  /// Use point sampling for minification, magnification, and mip-level sampling.
18  /// </summary>
19  Point = 0,
20 
21  /// <summary>
22  /// Use point sampling for minification and magnification; use linear interpolation for mip-level sampling.
23  /// </summary>
25 
26  /// <summary>
27  /// Use point sampling for minification; use linear interpolation for magnification; use point sampling for mip-level sampling.
28  /// </summary>
30 
31  /// <summary>
32  /// Use point sampling for minification; use linear interpolation for magnification and mip-level sampling.
33  /// </summary>
35 
36  /// <summary>
37  /// Use linear interpolation for minification; use point sampling for magnification and mip-level sampling.
38  /// </summary>
40 
41  /// <summary>
42  /// Use linear interpolation for minification; use point sampling for magnification; use linear interpolation for mip-level sampling.
43  /// </summary>
45 
46  /// <summary>
47  /// Use linear interpolation for minification and magnification; use point sampling for mip-level sampling.
48  /// </summary>
50 
51  /// <summary>
52  /// Use linear interpolation for minification, magnification, and mip-level sampling.
53  /// </summary>
54  Linear = 21,
55 
56  /// <summary>
57  /// Use anisotropic interpolation for minification, magnification, and mip-level sampling.
58  /// </summary>
59  Anisotropic = 85,
60 
61  /// <summary>
62  /// Use point sampling for minification, magnification, and mip-level sampling. Compare the result to the comparison value.
63  /// </summary>
64  ComparisonPoint = 128,
65 
66  /// <summary>
67  /// Use point sampling for minification and magnification; use linear interpolation for mip-level sampling. Compare the result to the comparison value.
68  /// </summary>
70 
71  /// <summary>
72  /// Use point sampling for minification; use linear interpolation for magnification; use point sampling for mip-level sampling. Compare the result to the comparison value.
73  /// </summary>
75 
76  /// <summary>
77  /// Use point sampling for minification; use linear interpolation for magnification and mip-level sampling. Compare the result to the comparison value.
78  /// </summary>
80 
81  /// <summary>
82  /// Use linear interpolation for minification; use point sampling for magnification and mip-level sampling. Compare the result to the comparison value.
83  /// </summary>
85 
86  /// <summary>
87  /// Use linear interpolation for minification; use point sampling for magnification; use linear interpolation for mip-level sampling. Compare the result to the comparison value.
88  /// </summary>
90 
91  /// <summary>
92  /// Use linear interpolation for minification and magnification; use point sampling for mip-level sampling. Compare the result to the comparison value.
93  /// </summary>
95 
96  /// <summary>
97  /// Use linear interpolation for minification, magnification, and mip-level sampling. Compare the result to the comparison value.
98  /// </summary>
99  ComparisonLinear = 149,
100 
101  /// <summary>
102  /// Use anisotropic interpolation for minification, magnification, and mip-level sampling. Compare the result to the comparison value.
103  /// </summary>
104  ComparisonAnisotropic = 213,
105  }
106 }
Use point sampling for minification; use linear interpolation for magnification and mip-level samplin...
Use point sampling for minification, magnification, and mip-level sampling. Compare the result to the...
Use linear interpolation for minification, magnification, and mip-level sampling. ...
TextureFilter
Filtering options during texture sampling.
Use linear interpolation for minification and magnification; use point sampling for mip-level samplin...
Use point sampling for minification; use linear interpolation for magnification; use point sampling f...
Use point sampling for minification; use linear interpolation for magnification; use point sampling f...
Use linear interpolation for minification, magnification, and mip-level sampling. Compare the result ...
Use anisotropic interpolation for minification, magnification, and mip-level sampling.
Use linear interpolation for minification; use point sampling for magnification; use linear interpola...
Use point sampling for minification and magnification; use linear interpolation for mip-level samplin...
Use linear interpolation for minification and magnification; use point sampling for mip-level samplin...
Use point sampling for minification; use linear interpolation for magnification and mip-level samplin...
Use linear interpolation for minification; use point sampling for magnification and mip-level samplin...
Use linear interpolation for minification; use point sampling for magnification and mip-level samplin...
Use point sampling for minification and magnification; use linear interpolation for mip-level samplin...
Use linear interpolation for minification; use point sampling for magnification; use linear interpola...
System.Windows.Point Point
Definition: ColorPicker.cs:15
Use anisotropic interpolation for minification, magnification, and mip-level sampling. Compare the result to the comparison value.