-
Notifications
You must be signed in to change notification settings - Fork 220
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix a crash when search for files. (#5818)
Co-authored-by: Ellie Hermaszewska <ellieh@nvidia.com>
- Loading branch information
1 parent
b0dfb1a
commit 89bf795
Showing
8 changed files
with
66 additions
and
2 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module Common; | ||
|
||
__include Common.Test; |
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
//#pragma once | ||
#include "Simple.h" | ||
// | ||
//#ifndef HOST_CODE | ||
//implementing Common; | ||
//#endif | ||
implementing Common; | ||
|
37 changes: 37 additions & 0 deletions
37
tests/language-feature/modules/gh-5799/HelloTriangleFS.slang
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 |
---|---|---|
@@ -0,0 +1,37 @@ | ||
//TEST:SIMPLE(filecheck=CHECK): -target spirv -I $dirname | ||
|
||
//CHECK: OpEntryPoint | ||
|
||
// shaders.slang | ||
|
||
// | ||
// This file provides a simple vertex and fragment shader that can be compiled | ||
// using Slang. This code should also be valid as HLSL, and thus it does not | ||
// use any of the new language features supported by Slang. | ||
// | ||
|
||
import Scene.Scene; | ||
|
||
// Output of the vertex shader, and input to the fragment shader. | ||
struct CoarseVertex | ||
{ | ||
float3 color; | ||
}; | ||
|
||
// Output of the fragment shader | ||
struct Fragment | ||
{ | ||
float4 color; | ||
}; | ||
|
||
|
||
// Fragment Shader | ||
|
||
[shader("fragment")] | ||
float4 main( | ||
CoarseVertex coarseVertex : CoarseVertex) : SV_Target | ||
{ | ||
float3 fragColor = coarseVertex.color; | ||
|
||
return float4(fragColor, 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module Scene; | ||
import Common.Common; | ||
|
Empty file.
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