Debian Codegraph @

clang/docs/HLSL/HLSLIRReference.rst

raw
1 =================
2 HLSL IR Reference
3 =================
4
5 .. contents::
6 :local:
7
8 Introduction
9 ============
10
11 The goal of this document is to provide a reference for all the special purpose
12 IR metadata and attributes used by the HLSL code generation path.
13
14 Function Attributes
15 ===================
16
17 ``hlsl.shader``
18 ---------------
19
20 The ``hlsl.shader`` function attribute is a string attribute applied to entry
21 functions. The value is the string representation of the shader stage (i.e.
22 ``compute``, ``pixel``, etc).