Skip to content

[SPIR-V] noinline attribute does not prevent function from being inlined during SPIR-V generation #3158

@LLJJDD

Description

@LLJJDD

I notice there is a [noinline] attribute in HLSL to hint that the function should not be inlined, but DXC will always inline all functions in SPIR-V.
Do we have a way to prevent specified function from being inlined in the final SPIR-V?

Metadata

Metadata

Assignees

Labels

enhancementFeature suggestionspirvWork related to SPIR-V

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions