GithubHelp home page GithubHelp logo

artvinn / vulkan-tutorial-rust Goto Github PK

View Code? Open in Web Editor NEW

This project forked from unknownue/vulkan-tutorial-rust

0.0 1.0 0.0 2.08 MB

Following the vulkan tutorial(https://vulkan-tutorial.com/) using the Rust programming language.

License: MIT License

Rust 99.34% GLSL 0.46% Python 0.20%

vulkan-tutorial-rust's Introduction

vulkan-tutorial-rust

Build Status LICENSE

A Rust implementation of the Vulkan Tutorial based on ash crate.

Status

The environment configuration is same as ash. See here for more detail.

Vulkan is quite hard. All examples on official website have been finished. ๐Ÿป

Usage

Enter the project root directory, download the assets by the python3 script:

vulkan-tutorial-rust$ python download_asset.py

Run any example with the following command:

$ cargo run --bin example_number

Here replace example_number with option in the following table:

example_number Code Reference Note
00 00_base_code.rs Link
01 01_instance_creation.rs Link
02 02_validation_layers.rs Link
03 03_physical_device_selection.rs Link
04 04_logical_device.rs Link
05 05_window_surface.rs Link
06 06_swap_chain_creation.rs Link
07 07_image_view.rs Link
08 08_graphics_pipeline.rs Link
09 09_shader_modules.rs Link
10 10_fixed_functions.rs Link
11 11_render_passes.rs Link
12 12_graphics_pipeline_complete.rs Link
13 13_framebuffers.rs Link
14 14_command_buffers.rs Link
15 15_hello_triangle.rs Link
16 16_swap_chain_recreation.rs Link
17 17_vertex_input.rs Link The Validation Layer will complain. This example may crash on Windows.
18 18_vertex_buffer.rs Link
19 19_staging_buffer.rs Link
20 20_index_buffer.rs Link
21 21_descriptor_layout.rs Link The Validation Layer will complain.
22 22_descriptor_sets.rs Link
23 23_texture_image.rs Link
24 24_sampler.rs Link
25 25_texture_mapping.rs Link
26 26_depth_buffering.rs Link
27 27_model_loading.rs Link Test this example in release mode.
28 28_mipmapping.rs Link Test this example in release mode.
29 29_multisampling.rs Link Test this example in release mode.

example usage

$ cargo run --bin 00

Snapshot

All snapshots

See also

bwasty/vulkan-tutorial-rs โ€” another Rust implementation using Vulkano

adrien-ben/vulkan-tutorial-rs โ€” another Rust implementation with some more custom chapters.

KhronosGroup/Vulkan-samples โ€” Offical examples from KhronosGroup

SaschaWillems/Vulkan โ€” More examples in C++

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.