mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
Reorganization directory structure [2/n]
Change-Id: I47962d17d755e80dcd9476e1ed75560f433f6115
This commit is contained in:

committed by
Jaroslaw Chodor

parent
d015d3633f
commit
e8852a68c4
44
opencl/test/unit_test/mocks/mock_sampler.h
Normal file
44
opencl/test/unit_test/mocks/mock_sampler.h
Normal file
@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright (C) 2017-2020 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) override {
|
||||
}
|
||||
};
|
||||
} // namespace NEO
|
Reference in New Issue
Block a user