.. _program_listing_file_include_flamegpu_detail_type_decode.h: Program Listing for File type_decode.h ====================================== |exhale_lsh| :ref:`Return to documentation for file ` (``include/flamegpu/detail/type_decode.h``) .. |exhale_lsh| unicode:: U+021B0 .. UPWARDS ARROW WITH TIP LEFTWARDS .. code-block:: cpp #ifndef INCLUDE_FLAMEGPU_DETAIL_TYPE_DECODE_H_ #define INCLUDE_FLAMEGPU_DETAIL_TYPE_DECODE_H_ #if defined(FLAMEGPU_USE_GLM) || defined(GLM_VERSION) #ifndef GLM_VERSION #ifdef __CUDACC__ #ifdef __NVCC_DIAG_PRAGMA_SUPPORT__ #pragma nv_diag_suppress = esa_on_defaulted_function_ignored #else #pragma diag_suppress = esa_on_defaulted_function_ignored #endif // __NVCC_DIAG_PRAGMA_SUPPORT__ #endif // __CUDACC__ #include #endif #endif namespace flamegpu { namespace detail { template struct type_decode { // Length of the decoded type static constexpr unsigned int len_t = 1; // Type of the decoded type typedef T type_t; }; #if defined(FLAMEGPU_USE_GLM) || defined(GLM_VERSION) template struct type_decode> { static constexpr unsigned int len_t = N; typedef T type_t; }; #endif } // namespace detail } // namespace flamegpu #endif // INCLUDE_FLAMEGPU_DETAIL_TYPE_DECODE_H_