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; }
public static ImageSampler FromGlobalCache(ImageSamplerData data) => GlobalCache.GetOrAdd(data, x => new ImageSampler(x));