DirectXShaderCompiler
DirectXShaderCompiler copied to clipboard
[SPIR-V] Implement GetAttributeAtVertex intrinsic
https://github.com/microsoft/DirectXShaderCompiler/pull/3861#issuecomment-875849527:
GetAttributeAtPVertex is part of the barycentrics optional feature added in shader model 6.1: https://github.com/microsoft/DirectXShaderCompiler/wiki/SV_Barycentrics#per-vertex-attributes
If/when possible, we should implement it in the SPIR-V backend as well.
Just ran into this when playing around with this, this intrinsic is actually needed in order to make SV_Barycentrics useful on vulkan since there's no other way (seemingly) to "undo" the provoking vertex behavior.
Please, reopen this or some issue for VK_KHR_fragment_shader_barycentric extension (Vulkan 1.3.215).
https://github.com/KhronosGroup/Vulkan-Docs/issues/1863
Implemented by https://github.com/microsoft/DirectXShaderCompiler/pull/4638.