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 true if the CPU has LOONGARCH LASX features or false if not.

\threadsafety It is safe to call this function from any thread.

\since This function is available since SDL 3.1.3.

extern SDL_DECLSPEC bool SDLCALL SDL_HasLASX(void)

Implementation

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