DirectXShaderCompiler icon indicating copy to clipboard operation
DirectXShaderCompiler copied to clipboard

[SPIR-V] Implement GetAttributeAtVertex intrinsic

Open sudonatalie opened this issue 4 years ago • 2 comments

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.

sudonatalie avatar Sep 02 '21 14:09 sudonatalie

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.

Jasper-Bekkers avatar Nov 22 '21 11:11 Jasper-Bekkers

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

ghost avatar May 25 '22 15:05 ghost

Implemented by https://github.com/microsoft/DirectXShaderCompiler/pull/4638.

s-perron avatar Jun 22 '23 17:06 s-perron