Skip to content

Barycentric coordinates GCN shader extension sample for DirectX 11

License

Notifications You must be signed in to change notification settings

GPUOpen-LibrariesAndSDKs/Barycentrics11

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pipeline status

AMD Barycentric Shader Extension Sample

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

Prerequisites

  • AMD Radeon™ GCN-based GPU (HD 7000 series or newer)
  • 64-bit Windows® 10
  • Visual Studio® 2019
  • Radeon Software Crimson Edition 16.9.1 (driver version 16.40) or later

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

  • This sample uses a driver extension to enable the use of instrinsic instructions.
  • The shader compiler should not use the D3DCOMPILE_SKIP_OPTIMIZATION option, otherwise it will not work.
  • Other instrinsics are also available.

Attribution

  • AMD, the AMD Arrow logo, Radeon, and combinations thereof are either registered trademarks or trademarks of Advanced Micro Devices, Inc. in the United States and/or other countries.
  • Microsoft, Direct3D, DirectX, Visual Studio, and Windows are either registered trademarks or trademarks of Microsoft Corporation in the United States and/or other countries.

About

Barycentric coordinates GCN shader extension sample for DirectX 11

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages