Survivalcraft API 1.8.2.3 v1.8.2.3
Survivalcraft 2.4
载入中...
搜索中...
未找到
SamplerState.cs
浏览该文件的文档.
1namespace Engine.Graphics {
2 public class SamplerState : LockOnFirstUse {
4
6
8
10
11 float m_minLod = -1000f;
12
13 float m_maxLod = 1000f;
14
16
20
24
28
32
33 public static SamplerState AnisotropicClamp = new() {
34 FilterMode = TextureFilterMode.Anisotropic,
37 MaxAnisotropy = 16,
38 IsLocked = true
39 };
40
41 public static SamplerState AnisotropicWrap = new() {
42 FilterMode = TextureFilterMode.Anisotropic,
45 MaxAnisotropy = 16,
46 IsLocked = true
47 };
48
50 get => m_filterMode;
51 set {
53 m_filterMode = value;
54 }
55 }
56
58 get => m_addressModeU;
59 set {
61 m_addressModeU = value;
62 }
63 }
64
66 get => m_addressModeV;
67 set {
69 m_addressModeV = value;
70 }
71 }
72
73 public int MaxAnisotropy {
74 get => m_maxAnisotropy;
75 set {
77 m_maxAnisotropy = MathUtils.Max(value, 1);
78 }
79 }
80
81 public float MinLod {
82 get => m_minLod;
83 set {
85 m_minLod = value;
86 }
87 }
88
89 public float MaxLod {
90 get => m_maxLod;
91 set {
93 m_maxLod = value;
94 }
95 }
96
97 public float MipLodBias {
98 get => m_mipLodBias;
99 set {
101 m_mipLodBias = value;
102 }
103 }
104 }
105}
TextureAddressMode m_addressModeV
static SamplerState AnisotropicWrap
TextureAddressMode m_addressModeU
static SamplerState AnisotropicClamp
static int Max(int x1, int x2)