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

Shader with a variable called new will fail when running with Metal #1355

Open
bghgary opened this issue Feb 8, 2024 · 0 comments
Open

Shader with a variable called new will fail when running with Metal #1355

bghgary opened this issue Feb 8, 2024 · 0 comments
Milestone

Comments

@bghgary
Copy link
Contributor

bghgary commented Feb 8, 2024

Shader with a variable called new will fail when running with Metal because Metal is based on C++14 and new is a keyword even though it is restricted.

See https://developer.apple.com/metal/Metal-Shading-Language-Specification.pdf

1.4.4 
Restrictions 
The following C++14 features are not available in Metal (section numbers in this list refer to the 
C++14 Specification):  
...
• new and delete operators (sections 5.3.4 and 5.3.5) 
...
@thomlucc thomlucc modified the milestones: 7.0, Future Feb 8, 2024
@thomlucc thomlucc modified the milestones: Future, 8.0 Mar 26, 2024
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

No branches or pull requests

2 participants