Skip to content

Commit 457c179

Browse files
authored
[NFC] Add API documentation and annotations (llvm#78635)
This change adds SM 6.2 availability annotation to 16-bit APIs (16-bit types require SM 6.2), and adds Doxygen API documentation.
1 parent 9c06b07 commit 457c179

File tree

2 files changed

+177
-2
lines changed

2 files changed

+177
-2
lines changed

clang/lib/Headers/hlsl/hlsl_basic_types.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,13 @@
1212
namespace hlsl {
1313
// built-in scalar data types:
1414

15+
/// \typedef template<typename Ty, int Size> using vector = Ty
16+
/// __attribute__((ext_vector_type(Size)))
17+
///
18+
/// \tparam Ty The base type of the vector may be any builtin integral or
19+
/// floating point type.
20+
/// \tparam Size The size of the vector may be any value between 1 and 4.
21+
1522
#ifdef __HLSL_ENABLE_16_BIT
1623
// 16-bit integer.
1724
typedef unsigned short uint16_t;

0 commit comments

Comments
 (0)