Skip to content

Commit

Permalink
[NFC] Add API documentation and annotations
Browse files Browse the repository at this point in the history
This change adds SM 6.2 availability annotation to 16-bit APIs (16-bit
types require SM 6.2), and adds Doxygen API documentation.
  • Loading branch information
llvm-beanz committed Jan 18, 2024
1 parent 160a750 commit 0e4a608
Show file tree
Hide file tree
Showing 2 changed files with 177 additions and 2 deletions.
7 changes: 7 additions & 0 deletions clang/lib/Headers/hlsl/hlsl_basic_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@
namespace hlsl {
// built-in scalar data types:

/// \typedef template<typename Ty, int Size> using vector = Ty
/// __attribute__((ext_vector_type(Size)))
///
/// \tparam Ty The base type of the vector may be any builtin integral or
/// floating point type.
/// \tparam Size The size of the vector may be any value between 1 and 4.

#ifdef __HLSL_ENABLE_16_BIT
// 16-bit integer.
typedef unsigned short uint16_t;
Expand Down
Loading

0 comments on commit 0e4a608

Please sign in to comment.