liblava

liblava

面向Vulkan API的现代化C++图形库

liblava是专为Vulkan API打造的现代C++图形库。它简化了窗口管理和输入处理,提供高效的渲染器和命令缓冲模型,支持运行时着色器编译。该库适用于原型设计、工具开发、性能分析和教学,兼容Windows和Linux系统。liblava集成了纹理和网格加载、相机控制、ImGui等功能,为低级图形编程提供全面支持。

Vulkan图形编程库C++跨平台渲染引擎Github开源项目
<br /> <a href="https://liblava.dev"> <img align="left" src="docs/assets/liblava_200px.png" width="110"> </a> <br />

<a href="https://liblava.dev"><img src="docs/assets/liblava.svg"></a>

A modern and easy-to-use library for the Vulkan® API

<br />

version License CodeFactor   Discord Donate Twitter Follow

<br />

lava provides essentials for low-level graphics - suited for prototyping, tooling, profiling and education.

This lean framework is written in neat C++23 and it strives for a modular rolling release as far as possible. We don't want to promise too much... but lava runs really smoothly on Windows and Linux.

<br />

➜   Download   •   Documentation (Tutorial + Guide)   •   Projects   •   Modules   •   Collaborate

<br />

In a nutshell

<a href="https://vulkan.org/"> <img align="right" src="docs/assets/Vulkan_RGB_Dec16.svg" width="270"> </a>
  • liblava is written in modern C++ with latest Vulkan support
  • Provides run loop abstraction for window and input handling
  • Plain renderer and command buffer model
  • Batteries included ➜ runtime shader compilation
  • Texture and mesh loading from virtual file system
  • Camera, imgui, logger and much more...
<br />

engine app frame   block asset resource base   file util core

<br />

Take a look

#include "liblava/lava.hpp" #include "imgui.h" int main(int argc, char* argv[]) { lava::engine app("imgui demo", { argc, argv }); if (!app.setup()) return lava::error::not_ready; app.imgui.layers.add("demo window", []() { ImGui::ShowDemoWindow(); }); return app.run(); }
<br />

Demos

demolava demo<br />free download on ➜ itch.io<br /><br /> The collection includes all stages to play around. - You can easily switch between them.

Stages

lightspawn<br />deferred shading + offscreen rendering<br /><br />Small demo that showcases how to render to an offscreen framebuffer and sample from it. - It is a challenge in itself and also a compact solution.
spawnlight<br />uniform buffer + camera<br /><br />This loads a very large mesh from file and simply textures it. - Use your gamepad to control the camera if there is one around.
lamplamp<br />push constants to shader<br /><br />Classic lamp to relax and where colors can be easily switched. - Unfortunately it also consumes power - so be aware!
shapesshapes<br />generating primitives<br /><br />Switch between basic shapes and use the camera to fly around. - A great start for your next interactive application.
genericsgenerics<br />float, double & int meshes<br /><br />This demo shows how to check GPU features and render mesh data with custom vertex layout. - There is a chapter about it in the Guide.
triangletriangle<br />unique classic mesh<br /><br />Where graphics programming always begins. - An example that illustrates how little it actually takes to render a triangle.
<br />

Projects

<img src="https://raw.githubusercontent.com/pezcode/lava-rt/main/demo/res/cubes/screenshot.png">rt cubes<br /> raytraced reflecting cubes<br /><br />Vulkan raytracing with liblava<br />Support for the Vulkan KHR ray tracing extensions with idiomatic wrappers. ➜ pezcode
Do you have a project? Submit it with a pull request
<br />

Modules

lava engine

engine producer props

  ➜   depends on app

lava app

app camera forward_shading

benchmark config imgui

  ➜   depends on frame + block + asset

lava frame

argh driver frame gamepad input

render_target renderer swapchain window

  ➜   depends on resource

<br />

lava block

attachment block descriptor render_pass subpass

compute_pipeline render_pipeline pipeline pipeline_layout

  ➜   depends on base

lava asset

load_image load_mesh load_texture write_image

  ➜   depends on resource + file

lava resource

buffer mesh primitive

format image texture

  ➜   depends on base

lava base

base instance memory queue

platform device physical_device

  ➜   depends on util

<br />

lava file

file file_system file_utils json_file json

  ➜   depends on core

lava util

log math random thread

hex layer telegram

  ➜   depends on core

lava core

data id misc time types version

<br />

Collaborate

Use the issue tracker to report any bug or compatibility issue.

:heart:   Thanks to all contributors making liblava flow...

<br /> <br />

If you want to contribute - we suggest the following:

  1. Fork the official repository
  2. Apply your changes to your fork
  3. Submit a pull request describing the changes you have made
<br />

Support

<br />

Need help?   Please feel free to ask us on ➜ Discord

<br />
Help maintenance and developmentEvery star and follow motivates

编辑推荐精选

音述AI

音述AI

全球首个AI音乐社区

音述AI是全球首个AI音乐社区,致力让每个人都能用音乐表达自我。音述AI提供零门槛AI创作工具,独创GETI法则帮助用户精准定义音乐风格,AI润色功能支持自动优化作品质感。音述AI支持交流讨论、二次创作与价值变现。针对中文用户的语言习惯与文化背景进行专门优化,支持国风融合、C-pop等本土音乐标签,让技术更好地承载人文表达。

QoderWork

QoderWork

阿里Qoder团队推出的桌面端AI智能体

QoderWork 是阿里推出的本地优先桌面 AI 智能体,适配 macOS14+/Windows10+,以自然语言交互实现文件管理、数据分析、AI 视觉生成、浏览器自动化等办公任务,自主拆解执行复杂工作流,数据本地运行零上传,技能市场可无限扩展,是高效的 Agentic 生产力办公助手。

lynote.ai

lynote.ai

一站式搞定所有学习需求

不再被海量信息淹没,开始真正理解知识。Lynote 可摘要 YouTube 视频、PDF、文章等内容。即时创建笔记,检测 AI 内容并下载资料,将您的学习效率提升 10 倍。

AniShort

AniShort

为AI短剧协作而生

专为AI短剧协作而生的AniShort正式发布,深度重构AI短剧全流程生产模式,整合创意策划、制作执行、实时协作、在线审片、资产复用等全链路功能,独创无限画布、双轨并行工业化工作流与Ani智能体助手,集成多款主流AI大模型,破解素材零散、版本混乱、沟通低效等行业痛点,助力3人团队效率提升800%,打造标准化、可追溯的AI短剧量产体系,是AI短剧团队协同创作、提升制作效率的核心工具。

seedancetwo2.0

seedancetwo2.0

能听懂你表达的视频模型

Seedance two是基于seedance2.0的中国大模型,支持图像、视频、音频、文本四种模态输入,表达方式更丰富,生成也更可控。

nano-banana纳米香蕉中文站

nano-banana纳米香蕉中文站

国内直接访问,限时3折

输入简单文字,生成想要的图片,纳米香蕉中文站基于 Google 模型的 AI 图片生成网站,支持文字生图、图生图。官网价格限时3折活动

扣子-AI办公

扣子-AI办公

职场AI,就用扣子

AI办公助手,复杂任务高效处理。办公效率低?扣子空间AI助手支持播客生成、PPT制作、网页开发及报告写作,覆盖科研、商业、舆情等领域的专家Agent 7x24小时响应,生活工作无缝切换,提升50%效率!

堆友

堆友

多风格AI绘画神器

堆友平台由阿里巴巴设计团队创建,作为一款AI驱动的设计工具,专为设计师提供一站式增长服务。功能覆盖海量3D素材、AI绘画、实时渲染以及专业抠图,显著提升设计品质和效率。平台不仅提供工具,还是一个促进创意交流和个人发展的空间,界面友好,适合所有级别的设计师和创意工作者。

图像生成AI工具AI反应堆AI工具箱AI绘画GOAI艺术字堆友相机AI图像热门
码上飞

码上飞

零代码AI应用开发平台

零代码AI应用开发平台,用户只需一句话简单描述需求,AI能自动生成小程序、APP或H5网页应用,无需编写代码。

Vora

Vora

免费创建高清无水印Sora视频

Vora是一个免费创建高清无水印Sora视频的AI工具

下拉加载更多