2017-12-21 00:45:38 +01:00
|
|
|
/*
|
2021-05-16 20:51:16 +02:00
|
|
|
* Copyright (C) 2018-2021 Intel Corporation
|
2017-12-21 00:45:38 +01:00
|
|
|
*
|
2018-09-18 09:11:08 +02:00
|
|
|
* SPDX-License-Identifier: MIT
|
2017-12-21 00:45:38 +01:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
2020-02-22 22:50:57 +01:00
|
|
|
#include "opencl/source/sampler/sampler.h"
|
2017-12-21 00:45:38 +01:00
|
|
|
|
2019-03-26 11:59:46 +01:00
|
|
|
namespace NEO {
|
2017-12-21 00:45:38 +01:00
|
|
|
|
|
|
|
struct MockSampler : public Sampler {
|
|
|
|
public:
|
|
|
|
MockSampler(Context *context,
|
|
|
|
cl_bool normalizedCoordinates,
|
|
|
|
cl_addressing_mode addressingMode,
|
2018-04-10 17:36:34 +02:00
|
|
|
cl_filter_mode filterMode,
|
|
|
|
cl_filter_mode mipFilterMode = CL_FILTER_NEAREST,
|
|
|
|
float lodMin = 0.0f,
|
|
|
|
float lodMax = 0.0f) : Sampler(context, normalizedCoordinates, addressingMode, filterMode,
|
|
|
|
mipFilterMode, lodMin, lodMax) {
|
2017-12-21 00:45:38 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
cl_context getContext() const {
|
|
|
|
return context;
|
|
|
|
}
|
|
|
|
|
|
|
|
cl_bool getNormalizedCoordinates() const {
|
|
|
|
return normalizedCoordinates;
|
|
|
|
}
|
|
|
|
|
|
|
|
cl_addressing_mode getAddressingMode() const {
|
|
|
|
return addressingMode;
|
|
|
|
}
|
|
|
|
|
|
|
|
cl_filter_mode getFilterMode() const {
|
|
|
|
return filterMode;
|
|
|
|
}
|
|
|
|
|
2021-02-05 01:58:42 +00:00
|
|
|
void setArg(void *memory, const HardwareInfo &hwInfo) override {
|
2017-12-21 00:45:38 +01:00
|
|
|
}
|
|
|
|
};
|
2019-03-26 11:59:46 +01:00
|
|
|
} // namespace NEO
|