Skip to content

Add _result='texture' and documentation #290

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

Merged
merged 4 commits into from
Jun 18, 2025

Conversation

jhelferty-nv
Copy link
Contributor

  • Add 'texture' as possible return_type

  • Add documentation page on how to use the _result argument to specify the return type for a non-void slang function.

  • Add a test for _result='texture'

Fixes #69

@CLAassistant
Copy link

CLAassistant commented Jun 13, 2025

CLA assistant check
All committers have signed the CLA.

Adds documentation page on how to use the _result argument to specify
the return type for a non-void slang function.

Fixes shader-slang#69
@jhelferty-nv
Copy link
Contributor Author

At @tunabrain 's suggestion (from #69) I gave return type its own separate documentation page.

Copy link
Contributor

@ccummingsNV ccummingsNV left a comment

Choose a reason for hiding this comment

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

Looks good to me - nice job.

@jhelferty-nv jhelferty-nv merged commit a38f0da into shader-slang:main Jun 18, 2025
14 checks passed
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.

Documentation for setting result type to 'texture'
3 participants