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

[SPIRV] Implement out variables in patch constant functions #6135

Merged
merged 1 commit into from
Jan 10, 2024

Conversation

s-perron
Copy link
Collaborator

@s-perron s-perron commented Jan 8, 2024

The documentation for the patch constant functions only mention

The outputs are usually defined by a structure and is
identified by HS_CONSTANT_DATA_OUTPUT in this example; the structure
depends on the domain type and would be different for triangle or
isoline domains.

This is why we did not realize that we needed to implement out variables
as well. This commit implement the alternate method of having an output.

Fixes #3743

@s-perron s-perron enabled auto-merge (squash) January 8, 2024 19:49
Copy link
Collaborator

@sudonatalie sudonatalie left a comment

Choose a reason for hiding this comment

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

LGTM % nits

tools/clang/lib/SPIRV/SpirvEmitter.cpp Outdated Show resolved Hide resolved
tools/clang/lib/SPIRV/SpirvEmitter.h Outdated Show resolved Hide resolved
@s-perron s-perron changed the title [SPIRV] Implement out variables in patch control functions [SPIRV] Implement out variables in patch constant functions Jan 8, 2024
The documentation for the patch control functions only mentions

> The outputs are usually defined by a structure and is
identified by HS_CONSTANT_DATA_OUTPUT in this example; the structure
depends on the domain type and would be different for triangle or
isoline domains.

This is why we did not realize that we needed to implement out variables
as well. This commit implement the alternate method of having an output.

Fixes microsoft#3743
@s-perron s-perron merged commit f94fe82 into microsoft:main Jan 10, 2024
12 checks passed
@s-perron s-perron deleted the i3743 branch September 17, 2024 13:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

[SPIR-V] Patch constant function does not support out parameters (works with DXIL backend)
3 participants