public TextureSampler(DeviceManager deviceManager, string id, TextureSamplerSettings settings) : base(deviceManager, id) { if (settings == null) { throw new ArgumentNullException("settings"); } Settings = settings; }
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(); } }
public PixelShaderSpec(string source, TextureSamplerSettings samplerSettings = null) : base(source) { SamplerSettings = samplerSettings ?? TextureSamplerSettings.Default(); }
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; }
protected bool Equals(TextureSamplerSettings other) { return(WrapU == other.WrapU && WrapV == other.WrapV && WrapW == other.WrapW && Filter == other.Filter); }