Files
compute-runtime/opencl/source/sampler/sampler_factory_init.inl
kamdiedrich fa8e720f9e Reorganization directory structure [1/n]
Change-Id: Id1a94577437a4826a32411869f516fec20314ec0
2020-02-22 21:56:09 +01:00

20 lines
604 B
C++

/*
* Copyright (C) 2017-2020 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
// Sampler factory table initialization.
// Family, gfxCore came from outside, do not set them here unless you
// really know what you are doing
template struct SamplerHw<Family>;
template <>
void populateFactoryTable<SamplerHw<Family>>() {
extern SamplerCreateFunc samplerFactory[IGFX_MAX_CORE];
extern getSamplerStateSizeHwFunc getSamplerStateSizeHw[IGFX_MAX_CORE];
samplerFactory[gfxCore] = SamplerHw<Family>::create;
getSamplerStateSizeHw[gfxCore] = SamplerHw<Family>::getSamplerStateSize;
}