示例#1
0
 internal SamplerState(Device device, SamplerStateDescription description)
     : base(device)
 {
     _description = description;
     _virtualMachineSamplerState = new SlimShader.VirtualMachine.Resources.SamplerState
     {
         Filter             = ConvertFilter(description.Filter),
         AddressU           = ConvertAddress(description.AddressU),
         AddressV           = ConvertAddress(description.AddressV),
         AddressW           = ConvertAddress(description.AddressW),
         MinimumLod         = description.MinimumLod,
         MaximumLod         = description.MaximumLod,
         MipLodBias         = description.MipLodBias,
         MaximumAnisotropy  = description.MaximumAnisotropy,
         ComparisonFunction = ConvertComparison(description.ComparisonFunction),
         BorderColor        = description.BorderColor.ToNumber4()
     };
 }
示例#2
0
		internal SamplerState(Device device, SamplerStateDescription description)
			: base(device)
		{
			_description = description;
		    _virtualMachineSamplerState = new SlimShader.VirtualMachine.Resources.SamplerState
		    {
		        Filter = ConvertFilter(description.Filter),
                AddressU = ConvertAddress(description.AddressU),
                AddressV = ConvertAddress(description.AddressV),
                AddressW = ConvertAddress(description.AddressW),
                MinimumLod = description.MinimumLod,
                MaximumLod = description.MaximumLod,
                MipLodBias = description.MipLodBias,
                MaximumAnisotropy = description.MaximumAnisotropy,
                ComparisonFunction = ConvertComparison(description.ComparisonFunction),
                BorderColor = description.BorderColor.ToNumber4()
            };
		}