Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions tools/clang/lib/Headers/hlsl/dx/linalg.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
// DirectX Shader Model 6.10 Linear Algebra objects and APIs.
//===----------------------------------------------------------------------===//

#ifndef _HLSL_DX_LINALG_H_
#define _HLSL_DX_LINALG_H_
Comment on lines +12 to +13

#include <enable_if>
#include <type_traits>

Expand Down Expand Up @@ -720,3 +723,5 @@ InterlockedAccumulate(RWByteAddressBuffer Res, uint StartOffset,
#pragma dxc diagnostic pop

#endif // SM 6.10 check and HV version check

#endif // _HLSL_DX_LINALG_H_
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
// REQUIRES: dxil-1-10

// RUN: %dxc -T cs_6_10 -E main -HV 2021 -enable-16bit-types -verify %s
// RUN: %dxc -DTEST_DXIL -T cs_6_10 -E main -HV 2021 -enable-16bit-types -verify %s
// RUN: %dxc %if spirv %{ -spirv -fspv-target-env=vulkan1.3 %} -T cs_6_2 -E main -HV 2021 -enable-16bit-types -verify %s

// expected-no-diagnostics

#include <enable_if>
#include <enable_if>
#include <type_traits>
#include <type_traits>
#include <vector_utils>
#include <vector_utils>

#ifdef __spirv__
#include <vk/spirv.h>
#include <vk/spirv.h>
#include <vk/opcode_selector.h>
#include <vk/opcode_selector.h>
// The public header also covers cooperative_matrix.impl.
#include <vk/khr/cooperative_matrix.h>
#include <vk/khr/cooperative_matrix.h>
#endif

#ifdef TEST_DXIL
#include <dx/linalg.h>
#include <dx/linalg.h>
#endif

[numthreads(1, 1, 1)] void main() {}
Loading