mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-05 15:48:51 +00:00
Renderer: Move depth state to VideoCommon and seperate from bpmem
This commit is contained in:
parent
4d36f0cc87
commit
2869c570f1
20 changed files with 80 additions and 104 deletions
|
@ -60,7 +60,7 @@ struct GXPipelineState
|
|||
{
|
||||
std::array<SamplerState, 8> samplers;
|
||||
BlendingState blend;
|
||||
ZMode zmode;
|
||||
DepthState zmode;
|
||||
RasterizerState raster;
|
||||
};
|
||||
|
||||
|
@ -916,9 +916,9 @@ void Renderer::SetGenerationMode()
|
|||
s_gx_state.raster.cull_mode = d3d_cull_modes[bpmem.genMode.cullmode];
|
||||
}
|
||||
|
||||
void Renderer::SetDepthMode()
|
||||
void Renderer::SetDepthState(const DepthState& state)
|
||||
{
|
||||
s_gx_state.zmode.hex = bpmem.zmode.hex;
|
||||
s_gx_state.zmode.hex = state.hex;
|
||||
}
|
||||
|
||||
void Renderer::SetSamplerState(int stage, int texindex, bool custom_tex)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue