This captures the target shader model and pipeline stage into the DXIL metadata for consumption by the DirectX runtime. Reviewed By: python3kgae Differential Revision: https://reviews.llvm.org/D134469
6 lines
190 B
LLVM
6 lines
190 B
LLVM
; RUN: opt -S -dxil-metadata-emit %s | FileCheck %s
|
|
target triple = "dxil-pc-shadermodel6.3-library"
|
|
|
|
; CHECK: !dx.shaderModel = !{![[SM:[0-9]+]]}
|
|
; CHECK: ![[SM]] = !{!"lib", i32 6, i32 3}
|