sdlHasAvx512F function

bool sdlHasAvx512F()

Determine whether the CPU has AVX-512F (foundation) features.

This always returns false on CPUs that aren't using Intel instruction sets.

\returns SDL_TRUE if the CPU has AVX-512F features or SDL_FALSE if not.

\since This function is available since SDL 2.0.9.

\sa SDL_HasAVX

extern DECLSPEC SDL_bool SDLCALL SDL_HasAVX512F(void)

Implementation

bool sdlHasAvx512F() {
  final sdlHasAvx512FLookupFunction = libSdl2
      .lookupFunction<Int32 Function(), int Function()>('SDL_HasAVX512F');
  return sdlHasAvx512FLookupFunction() == 1;
}