Exemplo n.º 1
0
 private InternalSamplerState GetInternalState(bool mipmap)
 {
     if (mipmap)
     {
         return(_mipmapState ?? (_mipmapState = CreateInternalState(mipmap)));
     }
     else
     {
         return(_noMipmapState ?? (_noMipmapState = CreateInternalState(mipmap)));
     }
 }
Exemplo n.º 2
0
        public void Apply(int textureUnit, bool mipmap)
        {
            InternalSamplerState internalState = GetInternalState(mipmap);

            internalState.Bind(textureUnit);
        }