How to use Push Constants in Wgsl using WGpu?

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

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • 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

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
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