1 /* 2 * Copyright (C) 2021 Intel Corporation 3 * 4 * SPDX-License-Identifier: MIT 5 * 6 */ 7 8 #pragma once 9 #include <cstdint> 10 #include <type_traits> 11 12 namespace NEO { 13 namespace AppResourceDefines { 14 template <typename TMemberSource, typename = int> 15 static constexpr bool has_ResourceTag = false; 16 17 #if defined(_DEBUG) || (_RELEASE_INTERNAL) 18 template <typename TMemberSource> 19 static constexpr bool has_ResourceTag<TMemberSource, decltype((void)TMemberSource::ResourceTag, int{})> = true; 20 constexpr bool resourceTagSupport = true; 21 22 #else 23 constexpr bool resourceTagSupport = false; 24 template <typename TMemberSource> 25 static constexpr bool has_ResourceTag<TMemberSource, decltype((void)TMemberSource::ResourceTag, int{})> = false; 26 #endif 27 28 constexpr uint32_t maxStrLen = 8u; 29 } // namespace AppResourceDefines 30 } // namespace NEO 31