-
Notifications
You must be signed in to change notification settings - Fork 855
rename occurrences of sample when used as a variable name #3216
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
Conversation
rename occurrences of sample when used as a shader variable name as this may be a reserved word in certain situatons
It appears that you made a non-draft PR! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Welcome to the Unity SRP repo!
Please make sure to fill out the PR template as best you can to give reviewers as much information as possible.
If you have any questions (and you are a Unity employee) go to "#devs-renderpipe"
rename occurrences of sample when used as a shader variable name as this may be a reserved word in certain situatons
* Fixed a regression introduced when changing the clamping algorithm for RTR and RTGI (case 1307479). (#3206) * rename occurrences of sample when used as a variable name (#3216) rename occurrences of sample when used as a shader variable name as this may be a reserved word in certain situatons * [HDRP] Update eye sample scene #3227 * Change the tooltip for color shadows and semi-transparent shadows (case 1307704). (#3237) * [Hdrp] Add 3DS max shader material test (#3239) * Arnold + Physical material * auto desk interactive * Reference image from yamato * linux vulkan test ref image * Hdrp/fix 1299233 ies resize #3243 * [HDRP] Fix metal warning + fix reference screenshots + disable unstable metal test #3251 * [HDRP] update some docs based on latest changelog (#3253) * Update some docs * Proof read upgrading to 2020.2 * Proof read whats new doc * Fixed typo Co-authored-by: Lewis Jordan <lewis.jordan@hotmail.co.uk> Co-authored-by: anisunity <42026998+anisunity@users.noreply.github.com> Co-authored-by: peterjohnlong <73894199+peterjohnlong@users.noreply.github.com> Co-authored-by: Rémi Chapelain <57442369+remi-chapelain@users.noreply.github.com> Co-authored-by: skhiat <55133890+skhiat@users.noreply.github.com> Co-authored-by: Lewis Jordan <lewis.jordan@hotmail.co.uk>
Purpose of this PR
This PR renames some shader variable names where "sample" had been used as the name. "sample" is a reserved word on some platforms and thus would cause a compile error if those shaders were to be compiled there.
Testing status
Tested locally that HDRP-DXR test shaders still compile successfully in DX12.
Tested locally that the affected platform branch, with raytrace shader compile enabled, can now successfully compile and run the HDRP template.
Comments to reviewers
Notes for the reviewers you have assigned.