public MaterialSamplerBinding(RenderingDevice device, ITexture texture, SamplerState samplerState) : base() { Texture = texture.Ref(); SamplerState = samplerState.Ref(); }
public void SetTexture(ITexture texture) { mPath = texture.GetName(); mTexture.Dispose(); mTexture = texture.Ref(); if (mTexture.Resource.IsValid()) { PreferredSize = mTexture.Resource.GetSize(); } }