forked from KhronosGroup/SPIRV-Cross
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request KhronosGroup#1698 from KhronosGroup/fix-1691
HLSL: Rewrite how block IO is emitted.
- Loading branch information
Showing
12 changed files
with
273 additions
and
235 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
23 changes: 13 additions & 10 deletions
23
reference/shaders-hlsl-no-opt/asm/vert/block-struct-initializer.asm.vert
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,35 +1,38 @@ | ||
struct Vert | ||
{ | ||
float a; | ||
float b; | ||
}; | ||
|
||
struct Foo | ||
{ | ||
float c; | ||
float d; | ||
}; | ||
|
||
static const Vert _11 = { 0.0f, 0.0f }; | ||
static const Foo _13 = { 0.0f, 0.0f }; | ||
|
||
static Foo foo = _13; | ||
|
||
struct Vert | ||
{ | ||
float a : TEXCOORD0; | ||
float b : TEXCOORD1; | ||
}; | ||
|
||
static Vert _3 = { 0.0f, 0.0f }; | ||
static Foo foo = _13; | ||
|
||
struct SPIRV_Cross_Output | ||
{ | ||
float Vert_a : TEXCOORD0; | ||
float Vert_b : TEXCOORD1; | ||
Foo foo : TEXCOORD2; | ||
}; | ||
|
||
void vert_main() | ||
{ | ||
} | ||
|
||
SPIRV_Cross_Output main(out Vert stage_output_3) | ||
SPIRV_Cross_Output main() | ||
{ | ||
vert_main(); | ||
stage_output_3 = _3; | ||
SPIRV_Cross_Output stage_output; | ||
stage_output.Vert_a = _3.a; | ||
stage_output.Vert_b = _3.b; | ||
stage_output.foo = foo; | ||
return stage_output; | ||
} |
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.