Skip to content

Handle noperspective modifier on sv_barycentrics input for SPIRV emitter #7816

@davli-nv

Description

@davli-nv

Address the TODO in slang-emit-spirv.cpp maybeEmitSystemVal() function that when an varying input has sv_barycentrics system value semantic and noperspective modifier, SpvBuiltInBaryCoordNoPerspKHR should be emitted.
Add test case for this in get-attribute-at-vertex.slang.
Also handle it when emitting GLSL, and check if it applies to HLSL/DXIL/METAL targets.

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions