Home

Awesome

pipeline status

Barycentrics D3D12 Shader Extension Sample

This sample shows how to use the shader extensions for D3D12 to access the barycentric intrinsic instruction in an HLSL pixel shader.

License

MIT: see LICENSE.txt for details.

System requirements

Sample overview

This sample renders a triangle zooming in and out. The triangle uses a checker board texture modulated by the barycentric coordinates as RGB colors.

Points of interest

Attribution

Notes

<a name="barycentrics12-footnote1">1</a>: While the shader extension sample will run on non-AMD hardware, it will be of limited usefulness, since the purpose of the sample is to demonstrate AMD-specific shader extensions.