DPC++ Runtime
Runtime libraries for oneAPI DPC++
bindless_images_sampler.hpp
Go to the documentation of this file.
1 //==------ bindless_images_sampler.hpp --- SYCL bindless images ------------==//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 
9 #pragma once
10 
11 #include <sycl/sampler.hpp>
12 
13 namespace sycl {
14 inline namespace _V1 {
15 namespace ext::oneapi::experimental {
16 
18 
24 
28  sycl::filtering_mode mipmapFiltering,
29  float minMipmapLevelClamp, float maxMipmapLevelClamp,
30  float maxAnisotropy)
33  mipmap_filtering(mipmapFiltering),
34  min_mipmap_level_clamp(minMipmapLevelClamp),
35  max_mipmap_level_clamp(maxMipmapLevelClamp),
36  max_anisotropy(maxAnisotropy) {}
37 
39 
43  : addressing{addr, addr, addr}, coordinate(coordinate),
45 
49  sycl::filtering_mode mipmapFiltering,
50  float minMipmapLevelClamp, float maxMipmapLevelClamp,
51  float maxAnisotropy)
52  : addressing{addr, addr, addr}, coordinate(coordinate),
53  filtering(filtering), mipmap_filtering(mipmapFiltering),
54  min_mipmap_level_clamp(minMipmapLevelClamp),
55  max_mipmap_level_clamp(maxMipmapLevelClamp),
56  max_anisotropy(maxAnisotropy) {}
57 
60  sycl::coordinate_normalization_mode::unnormalized;
61  sycl::filtering_mode filtering = sycl::filtering_mode::nearest;
62  sycl::filtering_mode mipmap_filtering = sycl::filtering_mode::nearest;
65  float max_anisotropy = 0.f;
66 };
67 
68 } // namespace ext::oneapi::experimental
69 } // namespace _V1
70 } // namespace sycl
filtering_mode
Definition: sampler.hpp:31
coordinate_normalization_mode
Definition: sampler.hpp:36
addressing_mode
Definition: sampler.hpp:23
Definition: access.hpp:18
bindless_image_sampler(sycl::addressing_mode addressing[3], sycl::coordinate_normalization_mode coordinate, sycl::filtering_mode filtering)
bindless_image_sampler(sycl::addressing_mode addr, sycl::coordinate_normalization_mode coordinate, sycl::filtering_mode filtering, sycl::filtering_mode mipmapFiltering, float minMipmapLevelClamp, float maxMipmapLevelClamp, float maxAnisotropy)
bindless_image_sampler(sycl::addressing_mode addressing[3], sycl::coordinate_normalization_mode coordinate, sycl::filtering_mode filtering, sycl::filtering_mode mipmapFiltering, float minMipmapLevelClamp, float maxMipmapLevelClamp, float maxAnisotropy)
bindless_image_sampler(sycl::addressing_mode addr, sycl::coordinate_normalization_mode coordinate, sycl::filtering_mode filtering)