textureAddToCache
See Texture.Cache.add
Only valid between Window.beginand Window.end.
Parameters
- key:Texture.Cache.Key
- Texture.Cache.Key
- texture:Texture
- Texture
Source
Implementation
pub fn textureAddToCache(key: Texture.Cache.Key, texture: Texture) void {
currentWindow().texture_cache.add(currentWindow().gpa, key, texture) catch |err| {
dvui.logError(@src(), err, "Could not add texture with key {x} to cache", .{key});
return;
};
}