sdlHasLsx function

bool sdlHasLsx()

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

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

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

\since This function is available since SDL 2.24.0.

extern DECLSPEC SDL_bool SDLCALL SDL_HasLSX(void)

Implementation

bool sdlHasLsx() {
  final sdlHasLsxLookupFunction =
      libSdl2.lookupFunction<Int32 Function(), int Function()>('SDL_HasLSX');
  return sdlHasLsxLookupFunction() == 1;
}