This repository was archived by the owner on Feb 25, 2025. It is now read-only.
File tree 2 files changed +3
-11
lines changed
2 files changed +3
-11
lines changed Original file line number Diff line number Diff line change @@ -100,10 +100,7 @@ InlinePassContext::RenderPassResult InlinePassContext::GetRenderPass(
100
100
101
101
RenderPassResult result;
102
102
103
- if (pass_count_ > 0 && pass_target_.GetRenderTarget ()
104
- .GetColorAttachments ()
105
- .find (0 )
106
- ->second .resolve_texture ) {
103
+ if (pass_count_ > 0 ) {
107
104
result.backdrop_texture =
108
105
pass_target_.Flip (*context_->GetResourceAllocator ());
109
106
if (!result.backdrop_texture ) {
@@ -114,12 +111,8 @@ InlinePassContext::RenderPassResult InlinePassContext::GetRenderPass(
114
111
auto color0 =
115
112
pass_target_.GetRenderTarget ().GetColorAttachments ().find (0 )->second ;
116
113
117
- if (pass_count_ > 0 ) {
118
- color0.load_action =
119
- color0.resolve_texture ? LoadAction::kDontCare : LoadAction::kLoad ;
120
- } else {
121
- color0.load_action = LoadAction::kClear ;
122
- }
114
+ color0.load_action =
115
+ pass_count_ > 0 ? LoadAction::kDontCare : LoadAction::kClear ;
123
116
124
117
color0.store_action = color0.resolve_texture
125
118
? StoreAction::kMultisampleResolve
Original file line number Diff line number Diff line change @@ -15,7 +15,6 @@ class InlinePassContext {
15
15
public:
16
16
struct RenderPassResult {
17
17
std::shared_ptr<RenderPass> pass;
18
-
19
18
std::shared_ptr<Texture> backdrop_texture;
20
19
};
21
20
You can’t perform that action at this time.
0 commit comments