Skip to content

[SPIRV] Fix constant value in function #7415

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 1 commit into from
May 3, 2025

Conversation

GinShio
Copy link
Contributor

@GinShio GinShio commented May 2, 2025

We will get a crash when use spirv intrinsic to create a constant value.

fatal error: generated SPIR-V is invalid: Constant cannot appear in a function declaration
  %spirvIntrinsicType_42 = OpConstant %spirvIntrinsicType 42

@s-perron s-perron enabled auto-merge (squash) May 2, 2025 23:44
@GinShio
Copy link
Contributor Author

GinShio commented May 3, 2025

@microsoft-github-policy-service agree company="AMD"

@s-perron s-perron merged commit 1198c30 into microsoft:main May 3, 2025
13 checks passed
@github-project-automation github-project-automation bot moved this from New to Done in HLSL Roadmap May 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants