-
Notifications
You must be signed in to change notification settings - Fork 361
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't merge a layer if it's an entry layer (#1103)
Don't merge a layer if it's an entry layer Add test case for merging duplicate layers that are also entry layers. Remove DASSERT that aborted entry layers being merged
- Loading branch information
1 parent
3ae241a
commit 7f8b7e3
Showing
8 changed files
with
44 additions
and
3 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
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,12 @@ | ||
shader a | ||
( | ||
float frequency = 1, | ||
string noiseType = "perlin", | ||
color amplitude = 1, | ||
int seed = 0, | ||
output color out = 0 | ||
) | ||
{ | ||
point domain = point(u + seed, v + seed, 0) * frequency; | ||
out = noise(noiseType, domain[0], domain[1]) * amplitude; | ||
} |
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 @@ | ||
shader b | ||
( | ||
color in = 0, | ||
output color out = 0 | ||
) | ||
{ | ||
out = in; | ||
} |
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,4 @@ | ||
Compiled a.osl -> a.oso | ||
Compiled b.osl -> b.oso | ||
Entry layers: b1(1) b2(3) b3(5) | ||
|
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,4 @@ | ||
#!/usr/bin/env python | ||
|
||
command = testshade("--group data/shadergroup -O2 " + | ||
"--entry b1 --entry b2 --entry b3") |
11 changes: 11 additions & 0 deletions
11
testsuite/mergeinstances-duplicate-entrylayers/shadergroup
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,11 @@ | ||
shader a a1 ; | ||
shader b b1 ; | ||
connect a1.out b1.in ; | ||
|
||
shader a a2 ; | ||
shader b b2 ; | ||
connect a2.out b2.in ; | ||
|
||
shader a a3 ; | ||
shader b b3 ; | ||
connect a3.out b3.in ; |