Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 22 additions & 1 deletion sycl/include/CL/sycl/access/access.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,28 @@ enum class address_space : int {
local_space
};

} // namespace access
} // namespace access

using access::target;
using access_mode = access::mode;

#if __cplusplus > 201402L

template <access_mode mode> struct mode_tag_t {
explicit mode_tag_t() = default;
};

template <access_mode mode, target trgt> struct mode_target_tag_t {
explicit mode_target_tag_t() = default;
};

inline constexpr mode_tag_t<access_mode::read> read_only{};
inline constexpr mode_tag_t<access_mode::read_write> read_write{};
inline constexpr mode_tag_t<access_mode::write> write_only{};
inline constexpr mode_target_tag_t<access_mode::read, target::constant_buffer>
read_constant{};

#endif

namespace detail {

Expand Down
Loading