Files
compute-runtime/opencl/test/unit_test/mocks/mock_sampler.h
Kamil Kopryk 4aa1697e3c Move hwInfoConfig ownership to RootDeviceEnvironment 2/n
Related-To: NEO-6853
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>

Use RootDeviceEnvironment getHelper<ProductHelper> for
- adjustSamplerState
- adjustPlatformForProductFamily.
2022-11-14 13:04:31 +01:00

46 lines
1.1 KiB
C++

/*
* Copyright (C) 2018-2022 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#pragma once
#include "opencl/source/sampler/sampler.h"
namespace NEO {
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, const RootDeviceEnvironment &rootDeviceEnvironment) override {
}
};
} // namespace NEO