mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-01-08 08:00:44 +01:00
optimize rasterization kill
This commit is contained in:
parent
3dc233fb56
commit
cf5602466c
@ -206,14 +206,15 @@ void SetFragmentState(T* desc, CachedFBOMtl* lastUsedFBO, CachedFBOMtl* activeFB
|
|||||||
if (cullFront && cullBack)
|
if (cullFront && cullBack)
|
||||||
rasterizationEnabled = false;
|
rasterizationEnabled = false;
|
||||||
|
|
||||||
desc->setRasterizationEnabled(rasterizationEnabled);
|
if (!rasterizationEnabled)
|
||||||
|
|
||||||
if (rasterizationEnabled)
|
|
||||||
{
|
{
|
||||||
auto pixelShaderMtl = static_cast<RendererShaderMtl*>(pixelShader->shader);
|
desc->setRasterizationEnabled(false);
|
||||||
desc->setFragmentFunction(pixelShaderMtl->GetFunction());
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
auto pixelShaderMtl = static_cast<RendererShaderMtl*>(pixelShader->shader);
|
||||||
|
desc->setFragmentFunction(pixelShaderMtl->GetFunction());
|
||||||
|
|
||||||
// Color attachments
|
// Color attachments
|
||||||
const Latte::LATTE_CB_COLOR_CONTROL& colorControlReg = lcr.CB_COLOR_CONTROL;
|
const Latte::LATTE_CB_COLOR_CONTROL& colorControlReg = lcr.CB_COLOR_CONTROL;
|
||||||
uint32 blendEnableMask = colorControlReg.get_BLEND_MASK();
|
uint32 blendEnableMask = colorControlReg.get_BLEND_MASK();
|
||||||
|
Loading…
Reference in New Issue
Block a user