Files
compute-runtime/level_zero/api/core/ze_sampler.cpp
Jaime Arteaga d96e462754 Reorganize Level Zero Core API files
Change-Id: I95750b90748dd65310fa72b030ea3ab2f72d3f24
Signed-off: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2020-03-25 11:21:43 +01:00

28 lines
590 B
C++

/*
* Copyright (C) 2019-2020 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "level_zero/core/source/sampler/sampler.h"
#include <level_zero/ze_api.h>
extern "C" {
__zedllexport ze_result_t __zecall
zeSamplerCreate(
ze_device_handle_t hDevice,
const ze_sampler_desc_t *desc,
ze_sampler_handle_t *phSampler) {
return L0::Device::fromHandle(hDevice)->createSampler(desc, phSampler);
}
__zedllexport ze_result_t __zecall
zeSamplerDestroy(
ze_sampler_handle_t hSampler) {
return L0::Sampler::fromHandle(hSampler)->destroy();
}
} // extern "C"