2018-12-16 21:48:35 +01:00
|
|
|
#pragma once
|
|
|
|
|
2020-10-04 10:10:55 +02:00
|
|
|
#include "Common/System/Display.h"
|
2020-10-04 20:48:47 +02:00
|
|
|
#include "Common/UI/Context.h"
|
|
|
|
#include "Common/UI/View.h"
|
|
|
|
#include "Common/UI/ViewGroup.h"
|
|
|
|
#include "Common/UI/UI.h"
|
2018-12-16 21:48:35 +01:00
|
|
|
|
|
|
|
#include "Common/LogManager.h"
|
|
|
|
#include "UI/MiscScreens.h"
|
|
|
|
#include "thin3d/thin3d.h"
|
|
|
|
|
|
|
|
class GPUDriverTestScreen : public UIDialogScreenWithBackground {
|
|
|
|
public:
|
|
|
|
GPUDriverTestScreen();
|
|
|
|
~GPUDriverTestScreen();
|
|
|
|
|
|
|
|
void CreateViews() override;
|
|
|
|
void render() override;
|
|
|
|
|
|
|
|
private:
|
2018-12-18 23:56:36 +01:00
|
|
|
void DiscardTest();
|
|
|
|
|
2018-12-20 11:14:50 +01:00
|
|
|
Draw::ShaderModule *discardFragShader_ = nullptr;
|
2018-12-18 23:56:36 +01:00
|
|
|
Draw::Pipeline *discardWriteDepthStencil_ = nullptr;
|
2018-12-20 11:00:15 +01:00
|
|
|
Draw::Pipeline *discardWriteDepth_ = nullptr;
|
|
|
|
Draw::Pipeline *discardWriteStencil_ = nullptr;
|
|
|
|
|
|
|
|
// Stencil test, with and without DepthAlways
|
2018-12-18 23:56:36 +01:00
|
|
|
Draw::Pipeline *drawTestStencilEqual_ = nullptr;
|
|
|
|
Draw::Pipeline *drawTestStencilNotEqual_ = nullptr;
|
2018-12-19 20:21:07 +01:00
|
|
|
Draw::Pipeline *drawTestStencilEqualDepthAlways_ = nullptr;
|
|
|
|
Draw::Pipeline *drawTestStencilNotEqualDepthAlways_ = nullptr;
|
2018-12-20 11:00:15 +01:00
|
|
|
|
|
|
|
// Depth tests with and without StencilAlways
|
|
|
|
Draw::Pipeline *drawTestStencilAlwaysDepthLessEqual_ = nullptr;
|
|
|
|
Draw::Pipeline *drawTestStencilAlwaysDepthGreater_ = nullptr;
|
2018-12-18 23:56:36 +01:00
|
|
|
Draw::Pipeline *drawTestDepthLessEqual_ = nullptr;
|
|
|
|
Draw::Pipeline *drawTestDepthGreater_ = nullptr;
|
2018-12-20 11:00:15 +01:00
|
|
|
|
2018-12-16 21:48:35 +01:00
|
|
|
Draw::SamplerState *samplerNearest_ = nullptr;
|
2018-12-18 23:56:36 +01:00
|
|
|
UI::TabHolder *tabHolder_ = nullptr;
|
2018-12-16 21:48:35 +01:00
|
|
|
};
|