This repository has been archived by the owner on Jan 29, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 193
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[hlsl-out] Zero initialize variables. Write interpolation and samplin…
…g qualifier
- Loading branch information
Showing
7 changed files
with
138 additions
and
30 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,36 @@ | ||
struct FragmentInput { | ||
float4 position : SV_Position; | ||
nointerpolation uint flat : LOC0; | ||
noperspective float linear1 : LOC1; | ||
noperspective centroid float2 linear_centroid : LOC2; | ||
noperspective sample float3 linear_sample : LOC3; | ||
linear float4 perspective : LOC4; | ||
linear centroid float perspective_centroid : LOC5; | ||
linear sample float perspective_sample : LOC6; | ||
}; | ||
|
||
struct FragmentInput_main { | ||
FragmentInput val1; | ||
}; | ||
|
||
FragmentInput main() | ||
{ | ||
FragmentInput out1 = (FragmentInput)0; | ||
|
||
out1.position = float4(2.0, 4.0, 5.0, 6.0); | ||
out1.flat = 8u; | ||
out1.linear1 = 27.0; | ||
out1.linear_centroid = float2(64.0, 125.0); | ||
out1.linear_sample = float3(216.0, 343.0, 512.0); | ||
out1.perspective = float4(729.0, 1000.0, 1331.0, 1728.0); | ||
out1.perspective_centroid = 2197.0; | ||
out1.perspective_sample = 2744.0; | ||
FragmentInput _expr30 = out1; | ||
const FragmentInput fragmentinput1 = _expr30; | ||
return fragmentinput1; | ||
} | ||
|
||
void main1(FragmentInput_main fragmentinput_main) | ||
{ | ||
return; | ||
} |
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 @@ | ||
vertex=vs_5_0 | ||
vertex_name=main | ||
fragment=ps_5_0 | ||
fragment_name=main1 |
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