How to use Push Constants in Wgsl using WGpu?

This page summarizes the projects mentioned and recommended in the original post on reddit.com/r/rust_gamedev

Our great sponsors
  • InfluxDB - Build time-series-based applications quickly and at scale.
  • Sonar - Write Clean Python Code. Always.
  • SaaSHub - Software Alternatives and Reviews
  • gpuweb

    Where the GPU for the Web work happens!

    The documentation is lacking some information of how to implement or rather use push constants. The closest I could find is this here: https://docs.rs/wgpu/latest/wgpu/struct.RenderPass.html#method.set_push_constants As well as the part that got removed from the Wgsl language: https://github.com/gpuweb/gpuweb/pull/615/files

  • naga

    Universal shader translation in Rust

    anyway, here's the test. https://github.com/gfx-rs/naga/blob/master/tests/in/push-constants.wgsl

  • InfluxDB

    Build time-series-based applications quickly and at scale.. InfluxDB is the Time Series Platform where developers build real-time applications for analytics, IoT and cloud-native services. Easy to start, it is available in the cloud or on-premises.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts