mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-07-27 01:41:39 +00:00
Combine 'special' with 'specialFormat' as single resource format type
* There was no good reason to have a flag indicating if the special format was valid or not. Now it's a single enum, with a value 'Regular' indicating that the compCount/compWidth/compType fully describe the format itself. * This makes code patterns easier as you no longer need to check for special then check for specialFormat, you can just test the type directly.
This commit is contained in:
@@ -1553,9 +1553,8 @@ void MainWindow::on_action_Start_Replay_Loop_triggered()
|
||||
for(const TextureDescription &tex : m_Ctx.GetTextures())
|
||||
{
|
||||
if((tex.creationFlags & TextureCategory::SwapBuffer) &&
|
||||
tex.format.compType != CompType::Depth && tex.format.specialFormat != SpecialFormat::D16S8 &&
|
||||
tex.format.specialFormat != SpecialFormat::D24S8 &&
|
||||
tex.format.specialFormat != SpecialFormat::D32S8)
|
||||
tex.format.compType != CompType::Depth && tex.format.type != ResourceFormatType::D16S8 &&
|
||||
tex.format.type != ResourceFormatType::D24S8 && tex.format.type != ResourceFormatType::D32S8)
|
||||
{
|
||||
displayTex = &tex;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user