Repository navigation
Release v0.1.0
Changelog
All notable changes to the lgpu workspace will be documented in this file.
The format is based on Keep a Changelog,
and this project adheres to Semantic Versioning.
[Unreleased] - 2026-10-15
Added
- Core API & Architecture:
HalDevice,HalBuffer,HalTexturetrait abstractions inlgpu-halwith modular submodule exports (allocator,buffer,command,device,instance,pipeline,swapchain,sync,texture).- Pipeline cache serialization and reuse via
device.get_pipeline_cache_data(). - Non-pow2 suballocation support exceeding 4,096 block allocations without memory fragmentation.
- Rendering & Pipeline Flexibility:
- Configurable blend modes:
BlendState,BlendComponent,BlendFactor,BlendOp(includingREPLACE,ALPHA_BLENDING,ADDITIVE). - Configurable topologies:
PrimitiveTopology(PointList,LineList,LineStrip,TriangleList,TriangleStrip). - Rasterizer cull modes (
None,Front,Back) and front face winding (Ccw,Cw). GraphicsPipelineDescfor unified, type-safe graphics pipeline creation.- Multi-pass compositing:
LoadOp<T>,ColorLoadOp,DepthLoadOp, and scopedencoder.begin_render_pass(desc). - Advanced drawing commands:
draw_indexed,draw_indexed_with_depth,draw_indexed_with_ops,draw_indirect, anddraw_indirect_with_depth.
- Configurable blend modes:
- Resource Streaming & Features:
encoder.copy_buffer_to_bufferfor high-throughput GPU memory transfers.queue.write_textureandencoder.copy_texture_to_bufferfor texture staging and readbacks.- Mipmapped and multi-sampled textures (MSAA) with sample count validation.
queue.write_bufferconvenience helper onQueue.Texture::is_owned(&self) -> boolandTexture::clone_unowned(&self) -> Texture.std::fmt::Debugimplementations forBuffer,Texture,Sampler,Shader,ComputePipeline, andGraphicsPipeline.
- C FFI & Cross-Language Bindings (
lgpu-c):lgpu_device_wait_idleto wait for all in-flight GPU operations to complete.- Complete native window and swapchain presentation API:
lgpu_create_surface_headless,lgpu_create_surface_from_xlib,lgpu_create_surface_from_xcb,lgpu_create_surface_from_wayland,lgpu_create_surface_from_win32. - Swapchain configuration and acquisition:
lgpu_surface_configure,lgpu_surface_get_current_texture,lgpu_surface_texture_get_texture,lgpu_queue_submit_surface,lgpu_surface_texture_destroy,lgpu_destroy_surface. - Explicit resource destruction:
lgpu_destroy_command_encoder,lgpu_destroy_command_buffer. - Full
# Safetyrustdoc annotations for everyextern "C"function.
- Testing:
- Integration tests for Section 1 through Section 9 audit items across 15 dedicated test suites.
- Headless swapchain resize and multi-frame in flight synchronization tests.
Fixed
- API-01 / BUG-02: Surface swapchain textures are marked
owned: falseso that dropping surface textures does not destroy swapchain-managed images. - API-02:
CommandEncoderrendering commands now returnResult<(), Error>rather than silently ignoring push constant overflows or missing bindless heaps. - API-03 / LEAK-01:
CommandEncodernow implementsDropto automatically recycle abandoned command recorders back to the device cache, preventing command pool and buffer leaks. - FFI-06:
LgpuAdapterInfoboolean fields replaced with ABI-stableuint8_tacross GCC, Clang, MSVC, and Zig. - BUG-01:
create_buffer_initandcreate_buffer_init_slicenow correctly copy user data to host-mapped memory without truncation. - BUG-06 / BUG-07:
request_devicechecks actual hardware capabilities and features rather than hardcoding feature enablement. - SAFETY-01 / SAFETY-02: Enforced
Send + Syncinvariants with thread-safe mutex guards protecting mapped buffer pointers and concurrent texture layout transitions. - LEAK-02 / BUG-04: Swapchain recreation preserves old swapchains until new swapchains are initialized and properly synchronizes multi-frame in-flight fences.
- DOC-05: Removed
Cargo.lockfrom.gitignorefor reproducible builds.
[0.1.0] - 2026-10-14
Added
- Initial release of
lgpu(Lean GPU). - Zero-overhead dynamic Vulkan 1.2+ loader (
lgpu-hal). - Global bindless descriptor indexing heap for unbounded texture and buffer access.
- Dynamic rendering support (
VK_KHR_dynamic_rendering). - Initial C99 / Zig FFI headers (
lgpu.h). - Showcase examples:
01_headless_compute02_clear_screen03_bindless_triangle04_bindless_100k05_window_shader
Full Changelog: https://github.com/kuntal-devrat/lgpu/commits/v0.1.0