Skip to content

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

Open

Description

@bghgary

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) 
...

Activity

  1. modified the milestones: 7.0, Future on Feb 8, 2024
  2. modified the milestones: Future, 8.0 on Mar 26, 2024
  3. modified the milestones: 8.0, 9.0, Future on Apr 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions