コード例 #1
0
 public MaterialSamplerBinding(RenderingDevice device,
                               ITexture texture,
                               SamplerState samplerState) : base()
 {
     Texture      = texture.Ref();
     SamplerState = samplerState.Ref();
 }
コード例 #2
0
 public void SetTexture(ITexture texture)
 {
     mPath = texture.GetName();
     mTexture.Dispose();
     mTexture = texture.Ref();
     if (mTexture.Resource.IsValid())
     {
         PreferredSize = mTexture.Resource.GetSize();
     }
 }