GithubHelp home page GithubHelp logo

psionic12 / egui_vulkano Goto Github PK

View Code? Open in Web Editor NEW

This project forked from derivator/egui_vulkano

0.0 1.0 0.0 28 KB

Vulkano rendering backend for egui

License: GNU General Public License v3.0

Rust 91.23% GLSL 8.77%

egui_vulkano's Introduction

Vulkano backend for egui

Latest version Documentation

This is a drawing backend to use egui with Vulkano. It can be used with egui_winit_platform for input handling.

Usage

let mut egui_painter = egui_vulkano::Painter::new(
    device.clone(), // your vulkano Device
    queue.clone(), // your vulkano Queue
    Subpass::from(render_pass.clone(), 1).unwrap(), // subpass that you set up to render the gui
)
.unwrap();

// ...

// Get the shapes from egui
let (_output, clipped_shapes) = egui_ctx.end_frame();

// Automatically start the next render subpass and draw the gui
egui_painter
    .draw(
        &mut builder, // your vulkano AutoCommandBufferBuilder
        &dynamic_state, // your vulkano DynamicState
        [width, height], // window size
        &egui_ctx, // your egui CtxRef
        clipped_shapes,
    )
    .unwrap();

Check the included working example for more info.

Limitations

At the moment there is no support for user textures. This is my first project with Vulkan/Vulkano and I make no guarantees about performance or correctness. Pull requests are welcome!

Credits

With inspiration from egui_winit_ash_vk_mem, egui_sdl2_gl and egui_glium.

egui_vulkano's People

Contributors

derivator avatar arc-blroth avatar jakoschiko avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.