示例#1
0
 public ImageSampler(ImageSamplerData data)
 {
     MinFilter     = data.MinFilter;
     MagFilter     = data.MagFilter;
     MipFilter     = data.MipFilter;
     AddressModeU  = data.AddressModeU;
     AddressModeV  = data.AddressModeV;
     AddressModeW  = data.AddressModeW;
     MaxAnisotropy = data.MaxAnisotropy;
 }
示例#2
0
 public static ImageSampler FromGlobalCache(ImageSamplerData data) =>
 GlobalCache.GetOrAdd(data, x => new ImageSampler(x));