rocPRIM
Public Types | Static Public Attributes | List of all members
detail::match_texture_type< T > Struct Template Reference

Public Types

using texture_base_type = typename std::conditional< sizeof(T) >=4, int, typename std::conditional< sizeof(T) >=2, short, char >::type >::type
 
using texture_4 = typename make_texture_type< texture_base_type, 4 >::type
 
using texture_2 = typename make_texture_type< texture_base_type, 2 >::type
 
using texture_1 = typename make_texture_type< texture_base_type, 1 >::type
 
using type = typename std::conditional< size % sizeof(texture_4)==0, texture_4, typename std::conditional< size % sizeof(texture_2)==0, texture_2, texture_1 >::type >::type
 

Static Public Attributes

static constexpr unsigned int size = sizeof(T)
 

The documentation for this struct was generated from the following file: