sokol-d ~master (2025-12-06T15:10:38.4964898)
Dub
Repo
Swapchain
sokol
app
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
extern (
C
)
struct
Swapchain {
int
width
;
int
height
;
int
sample_count
;
PixelFormat
color_format
;
PixelFormat
depth_format
;
MetalSwapchain
metal
;
D3d11Swapchain
d3d11
;
WgpuSwapchain
wgpu
;
VulkanSwapchain
vulkan
;
GlSwapchain
gl
;
}
Members
Variables
color_format
PixelFormat
color_format
;
Undocumented in source.
d3d11
D3d11Swapchain
d3d11
;
Undocumented in source.
depth_format
PixelFormat
depth_format
;
Undocumented in source.
gl
GlSwapchain
gl
;
Undocumented in source.
height
int
height
;
Undocumented in source.
metal
MetalSwapchain
metal
;
Undocumented in source.
sample_count
int
sample_count
;
Undocumented in source.
vulkan
VulkanSwapchain
vulkan
;
Undocumented in source.
wgpu
WgpuSwapchain
wgpu
;
Undocumented in source.
width
int
width
;
Undocumented in source.
Meta
Source
See Implementation
sokol
app
enums
AndroidTooltype
EventType
Html5FetchError
Keycode
LogItem
MouseCursor
Mousebutton
PixelFormat
functions
androidGetNativeActivity
bindMouseCursorImage
cancelQuit
colorFormat
consumeEvent
d3d11GetSwapChain
depthFormat
dpiScale
eglGetContext
eglGetDisplay
frameCount
frameDuration
getClipboardString
getDroppedFilePath
getEnvironment
getMouseCursor
getNumDroppedFiles
getSwapchain
glGetMajorVersion
glGetMinorVersion
glIsGles
height
heightf
highDpi
html5AskLeaveSite
html5FetchDroppedFile
html5GetDroppedFileSize
iosGetWindow
isFullscreen
isvalid
keyboardShown
lockMouse
macosGetWindow
mouseLocked
mouseShown
queryDesc
quit
requestQuit
run
sampleCount
sapp_android_get_native_activity
sapp_bind_mouse_cursor_image
sapp_cancel_quit
sapp_color_format
sapp_consume_event
sapp_d3d11_get_swap_chain
sapp_depth_format
sapp_dpi_scale
sapp_egl_get_context
sapp_egl_get_display
sapp_frame_count
sapp_frame_duration
sapp_get_clipboard_string
sapp_get_dropped_file_path
sapp_get_environment
sapp_get_mouse_cursor
sapp_get_num_dropped_files
sapp_get_swapchain
sapp_gl_get_major_version
sapp_gl_get_minor_version
sapp_gl_is_gles
sapp_height
sapp_heightf
sapp_high_dpi
sapp_html5_ask_leave_site
sapp_html5_fetch_dropped_file
sapp_html5_get_dropped_file_size
sapp_ios_get_window
sapp_is_fullscreen
sapp_isvalid
sapp_keyboard_shown
sapp_lock_mouse
sapp_macos_get_window
sapp_mouse_locked
sapp_mouse_shown
sapp_query_desc
sapp_quit
sapp_request_quit
sapp_run
sapp_sample_count
sapp_set_clipboard_string
sapp_set_icon
sapp_set_mouse_cursor
sapp_set_window_title
sapp_show_keyboard
sapp_show_mouse
sapp_toggle_fullscreen
sapp_unbind_mouse_cursor_image
sapp_userdata
sapp_width
sapp_widthf
sapp_win32_get_hwnd
sapp_x11_get_display
sapp_x11_get_window
setClipboardString
setIcon
setMouseCursor
setWindowTitle
showKeyboard
showMouse
toggleFullscreen
unbindMouseCursorImage
userdata
width
widthf
win32GetHwnd
x11GetDisplay
x11GetWindow
manifest constants
max_iconimages
max_keycodes
max_mousebuttons
max_touchpoints
modifier_alt
modifier_ctrl
modifier_lmb
modifier_mmb
modifier_rmb
modifier_shift
modifier_super
structs
Allocator
D3d11Environment
D3d11Swapchain
Desc
Environment
EnvironmentDefaults
Event
GlDesc
GlSwapchain
Html5Desc
Html5FetchRequest
Html5FetchResponse
IconDesc
ImageDesc
IosDesc
Logger
MetalEnvironment
MetalSwapchain
Range
Swapchain
Touchpoint
VulkanEnvironment
VulkanSwapchain
WgpuEnvironment
WgpuSwapchain
Win32Desc