Skip to content

[Feature Request] Add preprocessor definition when targeting Metal #7553

@llvm-beanz

Description

@llvm-beanz

Is your feature request related to a problem? Please describe.

We recently added a -metal flag to DXC to aid with cross-platform development workflows. When that flag is passed we should set a new preprocessor define in InitPreprocessor (something like __metal__) to denote that we're targeting Metal. That will allow for code portability to work around differences in behavior between DX, VK and MTL.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions