MCPcopy Create free account
hub / github.com/RenderKit/embree / nativePacketSupported

Function nativePacketSupported

tutorials/common/tutorial/tutorial_device.h:149–156  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

147extern "C" RayStats* g_stats;
148
149inline 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

Callers

nothing calls this directly

Calls 1

rtcGetDevicePropertyFunction · 0.85

Tested by

no test coverage detected