コード例 #1
0
        static SamplerState()
        {
            AnisotropicClamp = new SamplerState()
            {
                Filter = TextureFilter.Anisotropic,
                AddressU = TextureAddress.Clamp,
                AddressV = TextureAddress.Clamp,
                AddressW = TextureAddress.Clamp,
            };

            AnisotropicWrap = new SamplerState()
            {
                Filter = TextureFilter.Anisotropic,
                AddressU = TextureAddress.Wrap,
                AddressV = TextureAddress.Wrap,
                AddressW = TextureAddress.Wrap,
            };

            LinearClamp = new SamplerState()
            {
                Filter = TextureFilter.Linear,
                AddressU = TextureAddress.Clamp,
                AddressV = TextureAddress.Clamp,
                AddressW = TextureAddress.Clamp,
            };

            LinearWrap = new SamplerState()
            {
                Filter = TextureFilter.Linear,
                AddressU = TextureAddress.Wrap,
                AddressV = TextureAddress.Wrap,
                AddressW = TextureAddress.Wrap,
            };

            PointClamp = new SamplerState()
            {
                Filter = TextureFilter.Linear,
                AddressU = TextureAddress.Clamp,
                AddressV = TextureAddress.Clamp,
                AddressW = TextureAddress.Clamp,
            };

            PointWrap = new SamplerState()
            {
                Filter = TextureFilter.Linear,
                AddressU = TextureAddress.Wrap,
                AddressV = TextureAddress.Wrap,
                AddressW = TextureAddress.Wrap,
            };
        }