dear-imgui-impl-sdlgpu3: SDL3 GPU renderer-backend bindings for dear-imgui-raw.

[ bsd3, gui, library ] [ Propose Tags ] [ Report a vulnerability ]

Generated with dear_bindings from the imgui_impl_sdlgpu3 backend that ships with Dear ImGui.


[Skip to Readme]

Flags

Manual Flags

NameDescriptionDefault
sdl3

Bridge module DearImGui.Impl.SDLGPU3 over the sdl3-bindgen-sys GPU device, command buffer, render pass and enum types.

Enabled

Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 1.0.0
Change log CHANGELOG.md
Dependencies base (>=4.16 && <5), dear-imgui-raw (>=1.0 && <1.1), sdl3-bindgen-sys (>=0.0.1 && <0.0.2), unliftio-core [details]
License BSD-3-Clause
Author
Maintainer IC Rainbow <aenor.realm@gmail.com>
Uploaded by AlexanderBondarenko at 2026-11-09T22:59:07Z
Category GUI
Distributions
Downloads 2 total (2 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2026-11-09 [all 1 reports]

Readme for dear-imgui-impl-sdlgpu3-1.0.0

[back to package description]

dear-imgui-impl-sdlgpu3

Renderer backend for Dear ImGui on the SDL3 GPU API. Pair it with the SDL3 platform backend.

import DearImGui.Impl.SDLGPU3 qualified as ImplSDLGPU3
import DearImGui.Raw.ImGui qualified as ImGui
import Foreign.Ptr (Ptr, nullPtr)
import SDL3.Sys qualified as SDL3

renderImGui :: Ptr SDL3.SDL_GPUCommandBuffer -> IO (Ptr SDL3.SDL_GPURenderPass) -> IO ()
renderImGui commandBuffer beginRenderPass = do
  drawData <- ImGui.getDrawData
  ImplSDLGPU3.prepareDrawData drawData commandBuffer
  renderPass <- beginRenderPass
  ImplSDLGPU3.renderDrawData drawData commandBuffer renderPass nullPtr
  SDL3.endGPURenderPass renderPass