Skip to content
    Back to all Bounties

    Earn 4,500 ($45.00)

    Time Remainingdue 7 months ago
    Canceled

    Tauri Rust WGPU rendering

    deanhunter1
    deanhunter1
    Posted 8 months ago

    Bounty Description

    Problem Description

    Im having issues getting a Rust tarui wgpu panel to render ontop of a basic tauri application window. I provide the basic application harness in a compilable state however the WGPU rendering although running in its own thread does not get rendered on top of the tauri window.

    Acceptance Criteria

    1. The application should display the standard index.html in it current state on application launch with the WGPU red panel rendering ontop of the html.
    2. The architecture should be as close to the current setup as possible (eg. avoiding to restructure the core architecture of the run function. Changes to any WGPU code are acceptable but should function within the loop on the run function.
    3. Avoid changes to the state struct in lib.rs as it must function as it currently does.
    4. If possible (not a hard requirement but desired) layout a very simple architecture for sending data to the WGPU panel rather than only painting the wgpu with red pixels.
    5. As mentioned a hard limit is restructuring the run function in lib.rs on parts unrelated to wgpu. So no swapping the type of window used etc, it should remain as a tauri window.

    Technical Details

    There is multiple examples of currently working wgpu projects that provide various outlines of using WGPU with Tauri however I could not get their implementation to function correctly when using my harness code. Here are the samples in question:

    https://github.com/clearlysid/tauri-wgpu-cam/blob/main/src-tauri/src/main.rs
    https://github.com/tauri-apps/wry/blob/dev/examples/wgpu.rs

    Link to Project

    https://replit.com/@deanhunter1/WGpu-Tauri?v=1