You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Feature Request] [SPIR-V] no vk::ext_decorate on function parameters #8103
Is your feature request related to a problem? Please describe.
In the example below (full godbolt link), only the x variable gets correctly decorated with Aliased.
The OpFunctionParameters %a and %b remain undecorated.
// A simple function with an input and a return valuevoidSimpleAdd([[vk::ext_decorate(/*spv::DecorationAliased*/20)]] inout float a, [[vk::ext_decorate(/*spv::DecorationAliased*/20)]] inout float b) {
a = 1.0f;
b = 2.0f;
}
[numthreads(64, 1, 1)]
voidmain(uint3 DTid : SV_DispatchThreadID,
uint3 Gid : SV_GroupID,
uint GTid : SV_GroupIndex)
{
[[vk::ext_decorate(/*spv::DecorationAliased*/20)]]float x = 43;
SimpleAdd(x, x);
OutputBuffer[GTid] = x;
}
Describe the solution you'd like
I'd like to be able to decorate function parameters
Additional context
make sure to compile with -fcgl or -O0 to avoid inlining the function
changed the title [-][Feature Request] [SPIR-V] no vk::ext_decorateon function parameters[/-][+][Feature Request] [SPIR-V] no vk::ext_decorate on function parameters[/+]on Jan 30, 2026
Activity
Erfan-Ahmadi commentedon Jan 27, 2026
maybe related to #8000
[-][Feature Request] [SPIR-V] no vk::ext_decorateon function parameters[/-][+][Feature Request] [SPIR-V] no vk::ext_decorate on function parameters[/+][SPIR-V] Allow function parameters to be decorated with inline spir-v (…
luciechoi commentedon Apr 10, 2026
Function parameters should now be supported, please try from head or wait for the release.
(for reference, the documentation does mention supporting function parameters #8326)