Skip to content

Commit 163dd41

Browse files
committed
Add -fnative-half-type for half type.
1 parent 251bbfb commit 163dd41

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

clang/test/AST/HLSL/packoffset.hlsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clang_cc1 -triple dxil-unknown-shadermodel6.3-library -S -finclude-default-header -ast-dump -x hlsl %s | FileCheck %s
1+
// RUN: %clang_cc1 -triple dxil-unknown-shadermodel6.3-library -S -finclude-default-header -fnative-half-type -ast-dump -x hlsl %s | FileCheck %s
22

33

44
// CHECK: HLSLBufferDecl {{.*}} cbuffer A

clang/test/SemaHLSL/packoffset-invalid.hlsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clang_cc1 -finclude-default-header -triple dxil-pc-shadermodel6.3-library -verify %s
1+
// RUN: %clang_cc1 -finclude-default-header -triple dxil-pc-shadermodel6.3-library -fnative-half-type -verify %s
22

33
// expected-warning@+1{{cannot mix packoffset elements with nonpackoffset elements in a cbuffer}}
44
cbuffer Mix

0 commit comments

Comments
 (0)