Skip to content
This repository has been archived by the owner on Jan 29, 2025. It is now read-only.

[glsl-out] Write constant sized array type for uniform #1768

Merged
merged 3 commits into from
Mar 12, 2022

Conversation

hatoo
Copy link
Contributor

@hatoo hatoo commented Mar 9, 2022

resolves #1747

Writing wgpu Shadow Example as GLSL failed because glsl-out doesn't allow constant sized array type for uniform.

Hi, I'm interested in this project and I believe this PR resolve an issue. But I'm new to this project, sorry if the PR is nonsense.

This PR

  • Fixes glsl-out to allow constant sized array type for uniform global.
  • Update test case from wgpu's shadow example.

Copy link
Member

@kvark kvark left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the fix!

tests/in/shadow.wgsl Show resolved Hide resolved
This entry point isn't useful for testing.
@kvark kvark enabled auto-merge (rebase) March 12, 2022 04:11
@kvark kvark merged commit 7f4c017 into gfx-rs:master Mar 12, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Latest wgpu Shadow Example Causes GLSL backend to error
2 participants