- bindBuffer
void bindBuffer(Handle h, Range buffer)
Undocumented in source. Be warned that the author may not have intended to support it.
- cancel
void cancel(Handle h)
Undocumented in source. Be warned that the author may not have intended to support it.
- continueFetching
void continueFetching(Handle h)
Undocumented in source. Be warned that the author may not have intended to support it.
- desc
Desc desc()
Undocumented in source. Be warned that the author may not have intended to support it.
- dowork
void dowork()
Undocumented in source. Be warned that the author may not have intended to support it.
- handleValid
bool handleValid(Handle h)
Undocumented in source. Be warned that the author may not have intended to support it.
- maxPath
int maxPath()
Undocumented in source. Be warned that the author may not have intended to support it.
- maxUserdataBytes
int maxUserdataBytes()
Undocumented in source. Be warned that the author may not have intended to support it.
- pause
void pause(Handle h)
Undocumented in source. Be warned that the author may not have intended to support it.
- send
Handle send(Request request)
Undocumented in source. Be warned that the author may not have intended to support it.
- setup
void setup(Desc desc)
Undocumented in source. Be warned that the author may not have intended to support it.
- sfetch_bind_buffer
void sfetch_bind_buffer(Handle h, Range buffer)
bind a data buffer to a request (request must not currently have a buffer bound, must be called from response callback
- sfetch_cancel
void sfetch_cancel(Handle h)
cancel a request that's in flight (will call response callback with .cancelled + .finished)
- sfetch_continue
void sfetch_continue(Handle h)
continue a paused request
- sfetch_desc
Desc sfetch_desc()
get the desc struct that was passed to sfetch_setup()
- sfetch_dowork
void sfetch_dowork()
do per-frame work, moves requests into and out of IO threads, and invokes response-callbacks
- sfetch_handle_valid
bool sfetch_handle_valid(Handle h)
return true if a handle is valid *and* the request is alive
- sfetch_max_path
int sfetch_max_path()
return the value of the SFETCH_MAX_PATH implementation config value
- sfetch_max_userdata_bytes
int sfetch_max_userdata_bytes()
return the max userdata size in number of bytes (SFETCH_MAX_USERDATA_UINT64 * sizeof(uint64_t))
- sfetch_pause
void sfetch_pause(Handle h)
pause a request (will call response callback each frame with .paused)
- sfetch_send
Handle sfetch_send(Request* request)
send a fetch-request, get handle to request back
- sfetch_setup
void sfetch_setup(Desc* desc)
setup sokol-fetch (can be called on multiple threads)
- sfetch_shutdown
void sfetch_shutdown()
discard a sokol-fetch context
- sfetch_unbind_buffer
void* sfetch_unbind_buffer(Handle h)
clear the 'buffer binding' of a request, returns previous buffer pointer (can be 0), must be called from response callback
- sfetch_valid
bool sfetch_valid()
return true if sokol-fetch has been setup
- shutdown
void shutdown()
Undocumented in source. Be warned that the author may not have intended to support it.
- unbindBuffer
void* unbindBuffer(Handle h)
Undocumented in source. Be warned that the author may not have intended to support it.
- valid
bool valid()
Undocumented in source. Be warned that the author may not have intended to support it.
Machine generated D bindings for Sokol library.
Generated on: 2025-06-15 12:55:09
Source header: sokol_fetch.h Module: sokol.fetch
Do not edit manually; regenerate using gen_d.py.