Skip to content

[HLSL] Support noinline attribute to prevent automatic inlining #89806

Open
@pow2clk

Description

@pow2clk

#89282 will result in inlining all non-entry functions. That isn't quite right as functions with the noinline attribute shouldn't be.

Deliverables

Fully document how noinline should work in the context of passed resources and different qualifiers including the notoriously buggy globallycoherent and precise qualifiers. There is a chance that these will depend on further outside specification of how these qualifiers are expected to work.

Support for noinline in HLSL and the resulting functions remaining as separate calls in the output DXIL or SPIR-V.

Acceptance Criteria

A large swath of tests that verify that an assortment of user functions with different parameters, return values, semantics and other qualifiers correctly retain those features when they are called independently.

Metadata

Metadata

Assignees

No one assigned

    Labels

    HLSLHLSL Language Support

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions