Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Infer the storage class for images/samplers/imagesamplers #567

Merged
merged 3 commits into from
Apr 1, 2021

Conversation

khyperia
Copy link
Contributor

No description provided.

@khyperia khyperia requested a review from eddyb as a code owner March 31, 2021 11:19
Copy link
Member

@XAMPPRocky XAMPPRocky left a comment

Choose a reason for hiding this comment

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

LGTM! Do we also want to remove the uniform_constant attribute? Are there reasons to keep it?

@khyperia
Copy link
Contributor Author

Not sure if it's used anywhere else, but if we do remove it, then we should also remove input/output/etc. (right now it's a consistent "include everything" thing, even things that aren't currently valid to place anywhere)

@XAMPPRocky
Copy link
Member

Not sure if it's used anywhere else, but if we do remove it, then we should also remove input/output/etc. (right now it's a consistent "include everything" thing, even things that aren't currently valid to place anywhere)

Sound good to me. I'll file a separate issue for that.

Also the tests need formatting 🙃

@khyperia
Copy link
Contributor Author

haha yeah, kinda sucks that cargo fmt doesn't catch the tests, have to run rustfmt tests/ui/**/*.rs, but whatever, at least a check is in CI~

@eddyb
Copy link
Contributor

eddyb commented Mar 31, 2021

Not sure if it's used anywhere else, but if we do remove it, then we should also remove input/output/etc. (right now it's a consistent "include everything" thing, even things that aren't currently valid to place anywhere)

I've been told OpenGL uses UniformConstant the same way Vulkan uses PushConstant (which explains the name).

Removing input/output and function/private/generic should probably be done regardless.

@khyperia khyperia requested a review from eddyb April 1, 2021 07:00
@XAMPPRocky XAMPPRocky enabled auto-merge (squash) April 1, 2021 07:33
@XAMPPRocky XAMPPRocky merged commit 4fa73bd into main Apr 1, 2021
@XAMPPRocky XAMPPRocky deleted the infer-image-storage-class branch April 1, 2021 07:49
XAMPPRocky pushed a commit that referenced this pull request May 3, 2021
* Infer the storage class for images/samplers/imagesamplers

* format

* Move comment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants