Skip to content

cf_texture_handle

Category: graphics
GitHub: cute_graphics.h


Returns the backend's native texture handle casted to a uint64_t: an SDL_GPUTexture* on SDL_GPU, a WGPUTextureView on WebGPU.

uint64_t cf_texture_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