sdlGpuTextureSupportsSampleCount function gpu
Determines if a sample count for a texture format is supported.
\param device a GPU context. \param format the texture format to check. \param sample_count the sample count to check. \returns whether the sample count is supported for this texture format.
\since This function is available since SDL 3.2.0.
extern SDL_DECLSPEC bool SDLCALL SDL_GPUTextureSupportsSampleCount( SDL_GPUDevice *device, SDL_GPUTextureFormat format, SDL_GPUSampleCount sample_count)
Implementation
bool sdlGpuTextureSupportsSampleCount(
  Pointer<SdlGpuDevice> device,
  int format,
  int sampleCount,
) {
  final sdlGpuTextureSupportsSampleCountLookupFunction = _libSdl
      .lookupFunction<
        Uint8 Function(
          Pointer<SdlGpuDevice> device,
          Int32 format,
          Int32 sampleCount,
        ),
        int Function(Pointer<SdlGpuDevice> device, int format, int sampleCount)
      >('SDL_GPUTextureSupportsSampleCount');
  return sdlGpuTextureSupportsSampleCountLookupFunction(
        device,
        format,
        sampleCount,
      ) ==
      1;
}