Skip to content

igl | metal | Even if you do not dynamically modify the constants within a shader, you are still required to create the MTLFunction via API 'newFunctionWithName:constantValues:' if it contains constant variables.#380

Closed
vinsentli wants to merge 1 commit into
facebook:mainfrom
vinsentli:MTLFunctionConstantValues

Conversation

@vinsentli

@vinsentli vinsentli commented May 7, 2026

Copy link
Copy Markdown
Contributor

error 'Render Pipeline Descriptor Validation
fragmentFunction main0 cannot be used to build a pipeline state. Use newFunctionWithName:constantValues:... to get the specialized function
'

…you are still required to create the MTLFunctionvia NEW API if it contains constantvariables.
@meta-cla meta-cla Bot added the cla signed label May 7, 2026
@vinsentli vinsentli changed the title igl | metal | Even if you do not dynamically modify the constants within a shader, you are still required to create the MTLFunction via API 'newFunctionWithName:constantValues:' if it contains constantvariables. May 7, 2026
@meta-codesync

meta-codesync Bot commented May 7, 2026

Copy link
Copy Markdown
Contributor

@corporateshark has imported this pull request. If you are a Meta employee, you can view this in D104202410.

@meta-codesync

meta-codesync Bot commented May 7, 2026

Copy link
Copy Markdown
Contributor

@corporateshark merged this pull request in 80e3acd.

@vinsentli vinsentli deleted the MTLFunctionConstantValues branch June 15, 2026 01:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

2 participants