Skip to content

cf_texture_binding_handle

Category: graphics
GitHub: cute_graphics.h


Returns the backend's native texture binding handle casted to a uint64_t: an SDL_GPUTextureSamplerBinding* on SDL_GPU; on WebGPU, a pointer to a { WGPUTextureView, WGPUSampler } pair.

uint64_t cf_texture_binding_handle(CF_Texture texture);

Remarks

This is useful for e.g. rendering textures in an external system like Dear ImGui.

CF_TextureParams
CF_Texture
cf_make_texture