mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00

Updating files modified in 2018 only. Older files remain with old style copyright header Change-Id: Ic99f2e190ad74b4b7f2bd79dd7b9fa5fbe36ec92 Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
45 lines
1.1 KiB
C++
45 lines
1.1 KiB
C++
/*
|
|
* Copyright (C) 2017-2018 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
#include "runtime/sampler/sampler.h"
|
|
|
|
namespace OCLRT {
|
|
|
|
struct MockSampler : public Sampler {
|
|
public:
|
|
MockSampler(Context *context,
|
|
cl_bool normalizedCoordinates,
|
|
cl_addressing_mode addressingMode,
|
|
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) {
|
|
}
|
|
|
|
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;
|
|
}
|
|
|
|
void setArg(void *memory) override {
|
|
}
|
|
};
|
|
} // namespace OCLRT
|