sdlHasLasx function

bool sdlHasLasx()

Determine whether the CPU has LASX (LOONGARCH SIMD) features.

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

\returns SDL_TRUE if the CPU has LOONGARCH LASX features or SDL_FALSE if not.

\since This function is available since SDL 2.24.0.

extern DECLSPEC SDL_bool SDLCALL SDL_HasLASX(void)

Implementation

bool sdlHasLasx() {
  final sdlHasLasxLookupFunction =
      libSdl2.lookupFunction<Int32 Function(), int Function()>('SDL_HasLASX');
  return sdlHasLasxLookupFunction() == 1;
}