Example #1
0
 public TextureSampler(DeviceManager deviceManager, string id, TextureSamplerSettings settings) : base(deviceManager, id)
 {
     if (settings == null)
     {
         throw new ArgumentNullException("settings");
     }
     Settings = settings;
 }
Example #2
0
        public void Initialize()
        {
            DeviceManager.Initialize();

            if (!TextureSamplerManager.Exists("default"))
            {
                TextureSamplerManager.Create("default", TextureSamplerSettings.Default()).Activate(0);
            }
            if (!BlendStateManager.Exists("none"))
            {
                BlendStateManager.Create("none", BlendSettings.None()).Activate();
            }
            if (!BlendStateManager.Exists("default"))
            {
                BlendStateManager.Create("default", BlendSettings.DefaultEnabled());
            }
            if (!RasterizerStateManager.Exists("default"))
            {
                RasterizerStateManager.Create("default", RasterizerSettings.Default()).Activate();
            }
        }
Example #3
0
 public PixelShaderSpec(string source, TextureSamplerSettings samplerSettings = null) : base(source)
 {
     SamplerSettings = samplerSettings ?? TextureSamplerSettings.Default();
 }
Example #4
0
 public ITextureSampler Create(string id, TextureSamplerSettings settings)
 {
     return(Add(new TextureSampler(_deviceManager, id, settings)));
 }
 protected bool Equals(TextureSamplerSettings other)
 {
     return WrapU == other.WrapU && WrapV == other.WrapV && WrapW == other.WrapW && Filter == other.Filter;
 }
Example #6
0
 protected bool Equals(TextureSamplerSettings other)
 {
     return(WrapU == other.WrapU && WrapV == other.WrapV && WrapW == other.WrapW && Filter == other.Filter);
 }
 public PixelShaderSpec(string source, TextureSamplerSettings samplerSettings = null)
     : base(source)
 {
     SamplerSettings = samplerSettings ?? TextureSamplerSettings.Default();
 }