forked from KhronosGroup/SPIRV-Cross
-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update test output for preserve structured.
- Loading branch information
1 parent
63ea1a5
commit bf752ed
Showing
7 changed files
with
58 additions
and
4 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
26 changes: 26 additions & 0 deletions
26
reference/shaders-hlsl/asm/frag/array-of-structured-buffers.structured.fxconly.asm.frag
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,26 @@ | ||
struct Data | ||
{ | ||
float4 Color; | ||
}; | ||
|
||
StructuredBuffer<Data> Colors[2] : register(t0); | ||
|
||
static float4 out_var_SV_Target; | ||
|
||
struct SPIRV_Cross_Output | ||
{ | ||
float4 out_var_SV_Target : SV_Target0; | ||
}; | ||
|
||
void frag_main() | ||
{ | ||
out_var_SV_Target = Colors[1][3u].Color; | ||
} | ||
|
||
SPIRV_Cross_Output main() | ||
{ | ||
frag_main(); | ||
SPIRV_Cross_Output stage_output; | ||
stage_output.out_var_SV_Target = out_var_SV_Target; | ||
return stage_output; | ||
} |
26 changes: 26 additions & 0 deletions
26
reference/shaders-hlsl/asm/frag/structured-buffer.structured.asm.frag
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,26 @@ | ||
struct Data | ||
{ | ||
float4 Color; | ||
}; | ||
|
||
StructuredBuffer<Data> Colors : register(t0); | ||
|
||
static float4 out_var_SV_Target; | ||
|
||
struct SPIRV_Cross_Output | ||
{ | ||
float4 out_var_SV_Target : SV_Target0; | ||
}; | ||
|
||
void frag_main() | ||
{ | ||
out_var_SV_Target = Colors[3u].Color; | ||
} | ||
|
||
SPIRV_Cross_Output main() | ||
{ | ||
frag_main(); | ||
SPIRV_Cross_Output stage_output; | ||
stage_output.out_var_SV_Target = out_var_SV_Target; | ||
return stage_output; | ||
} |
File renamed without changes.
File renamed without changes.
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