mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-15 19:28:29 +12:00
Fix some compiler warnings (#416)
This commit is contained in:
parent
3869b47c35
commit
9ebbfb3ae2
6 changed files with 9 additions and 9 deletions
|
@ -64,8 +64,8 @@ struct LatteGPUState_t
|
|||
{
|
||||
bool isEnabled;
|
||||
MPTR physPtr;
|
||||
volatile uint32 flipRequestCount;
|
||||
volatile uint32 flipExecuteCount;
|
||||
std::atomic<uint32> flipRequestCount;
|
||||
std::atomic<uint32> flipExecuteCount;
|
||||
}screen[2];
|
||||
}osScreen;
|
||||
};
|
||||
|
|
|
@ -78,7 +78,7 @@ bool LatteHandleOSScreen_TV()
|
|||
LatteRenderTarget_copyToBackbuffer(osScreenTVTex[bufferIndexTV]->baseTexture->baseView, false);
|
||||
|
||||
if (LatteGPUState.osScreen.screen[0].flipExecuteCount != LatteGPUState.osScreen.screen[0].flipRequestCount)
|
||||
LatteGPUState.osScreen.screen[0].flipExecuteCount = LatteGPUState.osScreen.screen[0].flipRequestCount;
|
||||
LatteGPUState.osScreen.screen[0].flipExecuteCount.store(LatteGPUState.osScreen.screen[0].flipRequestCount);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -101,7 +101,7 @@ bool LatteHandleOSScreen_DRC()
|
|||
LatteRenderTarget_copyToBackbuffer(osScreenDRCTex[bufferIndexDRC]->baseTexture->baseView, true);
|
||||
|
||||
if (LatteGPUState.osScreen.screen[1].flipExecuteCount != LatteGPUState.osScreen.screen[1].flipRequestCount)
|
||||
LatteGPUState.osScreen.screen[1].flipExecuteCount = LatteGPUState.osScreen.screen[1].flipRequestCount;
|
||||
LatteGPUState.osScreen.screen[1].flipExecuteCount.store(LatteGPUState.osScreen.screen[1].flipRequestCount);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
@ -55,7 +55,7 @@ uint64 VulkanRenderer::draw_calculateGraphicsPipelineHash(const LatteFetchShader
|
|||
// An alternative would be to use VK_EXT_vertex_input_dynamic_state but it comes with minor overhead
|
||||
// Regardless, the extension is not well supported as of writing this (July 2021, only 10% of GPUs support it on Windows. Nvidia only)
|
||||
|
||||
cemu_assert_debug(fetchShader->key == fetchShader->key); // fetch shaders must be layout compatible, but may have different offsets
|
||||
cemu_assert_debug(vertexShader->compatibleFetchShader->key == fetchShader->key); // fetch shaders must be layout compatible, but may have different offsets
|
||||
|
||||
uint64 stateHash;
|
||||
stateHash = draw_calculateMinimalGraphicsPipelineHash(fetchShader, lcr);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue