wgpu-rs | Rust bindings to wgpu native library

 by   gfx-rs Rust Version: Current License: MPL-2.0

kandi X-RAY | wgpu-rs Summary

kandi X-RAY | wgpu-rs Summary

wgpu-rs is a Rust library. wgpu-rs has no bugs, it has no vulnerabilities, it has a Weak Copyleft License and it has medium support. You can download it from GitHub.

Project is now moved to wgpu folder at
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              wgpu-rs has a medium active ecosystem.
              It has 1694 star(s) with 195 fork(s). There are 62 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              There are 0 open issues and 331 have been closed. On average issues are closed in 321 days. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of wgpu-rs is current.

            kandi-Quality Quality

              wgpu-rs has no bugs reported.

            kandi-Security Security

              wgpu-rs has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.

            kandi-License License

              wgpu-rs is licensed under the MPL-2.0 License. This license is Weak Copyleft.
              Weak Copyleft licenses have some restrictions, but you can use them in commercial projects.

            kandi-Reuse Reuse

              wgpu-rs releases are not available. You will need to build from source code and install.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of wgpu-rs
            Get all kandi verified functions for this library.

            wgpu-rs Key Features

            No Key Features are available at this moment for wgpu-rs.

            wgpu-rs Examples and Code Snippets

            No Code Snippets are available at this moment for wgpu-rs.

            Community Discussions

            QUESTION

            wgpu-rs: Putting a Matrix3 into a vertex shader results in odd behavior but using a Matrix4 works fine
            Asked 2020-May-13 at 16:24

            Using wgpu-rs, I'm trying to get a 3x3 cgmath matrix into a shader (compiled using glsl-to-spirv). However, the resulting mat3 in the shader has incorrect data. When I replace the mat3 and Matrix3 with mat4 and Matrix4, everything works fine and the matrix has correct data.

            Vertex Shader:

            ...

            ANSWER

            Answered 2020-May-13 at 16:24

            This is an open issue in wgpu-rs. Indeed the simplest workaround may be to make your mat3 into a mat4 until it is resolved.

            The problem seems to be a mistake of alignment in generating SPIR-V. The actual alignment is:

            1. If the member is a scalar consuming N basic machine units, the base alignment is N.
            2. If the member is a two- or four-component vector with components consuming N basic machine units, the base alignment is 2N or 4N, respectively.
            3. If the member is a three-component vector with components consuming N basic machine units, the base alignment is 4N.
            4. If the member is an array of scalars or vectors, the base alignment and array stride are set to match the base alignment of a single array element, according to rules (1), (2), and (3), and rounded up to the base alignment of a vec4. The array may have padding at the end; the base offset of the member following the array is rounded up to the next multiple of the base alignment.

            You are in case 4. Having a mat4 should leave no extra padding on the end and not give any possibility for misalignment issues.

            Source https://stackoverflow.com/questions/61768628

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install wgpu-rs

            You can download it from GitHub.
            Rust is installed and managed by the rustup tool. Rust has a 6-week rapid release process and supports a great number of platforms, so there are many builds of Rust available at any time. Please refer rust-lang.org for more information.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/gfx-rs/wgpu-rs.git

          • CLI

            gh repo clone gfx-rs/wgpu-rs

          • sshUrl

            git@github.com:gfx-rs/wgpu-rs.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link