mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-12-24 03:41:52 +01:00
Pipeline state if statment cleanups
This commit is contained in:
parent
bf536aa168
commit
e5919e84a1
@ -495,7 +495,7 @@ namespace skyline::gpu::interconnect::maxwell3d {
|
|||||||
|
|
||||||
boost::container::static_vector<TextureView *, engine::ColorTargetCount> colorAttachments;
|
boost::container::static_vector<TextureView *, engine::ColorTargetCount> colorAttachments;
|
||||||
for (auto &colorRenderTarget : colorRenderTargets)
|
for (auto &colorRenderTarget : colorRenderTargets)
|
||||||
if (auto view{colorRenderTarget.UpdateGet(ctx, packedState).view}; view)
|
if (auto view{colorRenderTarget.UpdateGet(ctx, packedState).view})
|
||||||
colorAttachments.push_back(view.get());
|
colorAttachments.push_back(view.get());
|
||||||
|
|
||||||
TextureView *depthAttachment{depthRenderTarget.UpdateGet(ctx, packedState).view.get()};
|
TextureView *depthAttachment{depthRenderTarget.UpdateGet(ctx, packedState).view.get()};
|
||||||
@ -509,7 +509,7 @@ namespace skyline::gpu::interconnect::maxwell3d {
|
|||||||
globalShaderConfig.Update(packedState);
|
globalShaderConfig.Update(packedState);
|
||||||
|
|
||||||
if (pipeline) {
|
if (pipeline) {
|
||||||
if (auto newPipeline{pipeline->LookupNext(packedState)}; newPipeline) {
|
if (auto newPipeline{pipeline->LookupNext(packedState)}) {
|
||||||
pipeline = newPipeline;
|
pipeline = newPipeline;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user