-
Notifications
You must be signed in to change notification settings - Fork 716
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update tests for changes to allowed typed buffer elements
- Loading branch information
Showing
30 changed files
with
49 additions
and
507 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 0 additions & 22 deletions
22
tools/clang/test/CodeGenSPIRV/op.buffer.access.bitfield.hlsl
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 0 additions & 14 deletions
14
tools/clang/test/CodeGenSPIRV/type.buffer.struct.error1.hlsl
This file was deleted.
Oops, something went wrong.
14 changes: 0 additions & 14 deletions
14
tools/clang/test/CodeGenSPIRV/type.buffer.struct.error2.hlsl
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 6 additions & 6 deletions
12
tools/clang/test/CodeGenSPIRV/type.rwbuffer.struct.error.hlsl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
// RUN: not %dxc -T vs_6_0 -E main -fcgl %s -spirv 2>&1 | FileCheck %s | ||
// RUN: not %dxc -DBUF=RWBuffer -T vs_6_0 -E main -fcgl %s -spirv 2>&1 | FileCheck %s -check-prefix=BUF | ||
// RUN: not %dxc -DBUF=RasterizerOrderedBuffer -T vs_6_0 -E main -fcgl %s -spirv 2>&1 | FileCheck %s -check-prefix=ROV | ||
|
||
struct S { | ||
float a; | ||
float b; | ||
}; | ||
|
||
// CHECK: error: cannot instantiate RWBuffer with struct type 'S' | ||
RWBuffer<S> MyRWBuffer; | ||
|
||
// CHECK: error: cannot instantiate RasterizerOrderedBuffer with struct type 'S' | ||
RasterizerOrderedBuffer<S> MyROVBuffer; | ||
// BUF: error: Elements of typed buffers and textures must be scalars or vectors | ||
// ROV: error: cannot instantiate RasterizerOrderedBuffer with struct type 'S' | ||
BUF<S> Buf; | ||
|
||
float4 main() : A { | ||
return 1.0; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.