sdlShaderCrossGetHlslShaderFormats function shadercross

int sdlShaderCrossGetHlslShaderFormats()

Get the supported shader formats that HLSL cross-compilation can output

\returns GPU shader formats supported by HLSL cross-compilation.

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

extern SDL_DECLSPEC SDL_GPUShaderFormat SDLCALL SDL_ShaderCross_GetHLSLShaderFormats(void)

Implementation

int sdlShaderCrossGetHlslShaderFormats() {
  final sdlShaderCrossGetHlslShaderFormatsLookupFunction = _libShadercross
      .lookupFunction<Uint32 Function(), int Function()>(
        'SDL_ShaderCross_GetHLSLShaderFormats',
      );
  return sdlShaderCrossGetHlslShaderFormatsLookupFunction();
}