Support Barycentrics in Shaders #2900
Labels
area: api
Issues related to API surface
backend: dx12
Issues with DX12 or DXGI
backend: metal
Issues with Metal
backend: vulkan
Issues with Vulkan
help required
We need community help to make this happen.
type: enhancement
New feature or request
Is your feature request related to a problem? Please describe.
Getting triangle barycentric coordiates is useful for various operations, including wireframes and visbuffer schinanigans.
Describe the solution you'd like
A
@builtin(barycentric) vec3<f32>
that is implemented on top of SV_Barycentrics in HLSL,[[barycentric_coord]]
in msl 2.2+, and eitherVK_NV/KHR_fragment_shader_barycentric
orVK_AMD_shader_explicit_vertex_parameter
.Depends on us having DXIL via #2722
The text was updated successfully, but these errors were encountered: