clang
20.0.0git
lib
Headers
hlsl
hlsl_basic_types.h
Go to the documentation of this file.
1
//===----- hlsl_basic_types.h - HLSL definitions for basic types ----------===//
2
//
3
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4
// See https://llvm.org/LICENSE.txt for license information.
5
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
//
7
//===----------------------------------------------------------------------===//
8
9
#ifndef _HLSL_HLSL_BASIC_TYPES_H_
10
#define _HLSL_HLSL_BASIC_TYPES_H_
11
12
namespace
hlsl
{
13
// built-in scalar data types:
14
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.