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
Actual Behavior
SPIR-V compilation fails with a validation error message:
fatal error: generated SPIR-V is invalid: The Base <id> '7[%int_0]' in OpAccessChain instruction must be a pointer.
%14 = OpAccessChain %_ptr_Function_int %int_0 %uint_0
DXIL fails with:
<source>:6:10: error: attribute evaluation can only be done on values taken directly from inputs.
return GetAttributeAtVertex(0, 0);
^
The SPIR-V backend should produce a similarly helpful error message.
./build/bin/dxc -T ps_6_0 -spirv ./test.hlsl
./test.hlsl:3:31: error: parameter 0 of GetAttributeAtVertex must have a 'nointerpolation' attribute
return GetAttributeAtVertex(0, 0);
^
Activity
[Sema] Requires nointerpolation on GetAttributeAtVertex param #0
[Sema] Requires nointerpolation on GetAttributeAtVertex param #0
[Sema] Requires nointerpolation on GetAttributeAtVertex param #0
sudonatalie commentedon Mar 26, 2024
Related: microsoft/hlsl-specs#181
[Sema] Requires nointerpolation on GetAttributeAtVertex param #0
[Sema] Requires nointerpolation on GetAttributeAtVertex param #0
[SPIR-V][Sema] Requires nointerpolation on GetAttributeAtVertex param…
Keenuts commentedon Apr 3, 2024
This is now fixed: