| 147 | extern "C" RayStats* g_stats; |
| 148 | |
| 149 | inline bool nativePacketSupported(RTCDevice device) |
| 150 | { |
| 151 | if (sizeof(float) == 1*4) return true; |
| 152 | else if (sizeof(float) == 4*4) return rtcGetDeviceProperty(device,RTC_DEVICE_PROPERTY_NATIVE_RAY4_SUPPORTED); |
| 153 | else if (sizeof(float) == 8*4) return rtcGetDeviceProperty(device,RTC_DEVICE_PROPERTY_NATIVE_RAY8_SUPPORTED); |
| 154 | else if (sizeof(float) == 16*4) return rtcGetDeviceProperty(device,RTC_DEVICE_PROPERTY_NATIVE_RAY16_SUPPORTED); |
| 155 | else return false; |
| 156 | } |
| 157 | |
| 158 | } // namespace embree |
nothing calls this directly
no test coverage detected