CoCalc provides the best real-time collaborative environment for Jupyter Notebooks, LaTeX documents, and SageMath, scalable from individual users to large groups and classes!
CoCalc provides the best real-time collaborative environment for Jupyter Notebooks, LaTeX documents, and SageMath, scalable from individual users to large groups and classes!
Path: blob/master/UI/GPUDriverTestScreen.h
Views: 1401
#pragma once12#include "Common/System/Display.h"3#include "Common/UI/Context.h"4#include "Common/UI/View.h"5#include "Common/UI/ViewGroup.h"67#include "Common/Log.h"8#include "UI/MiscScreens.h"9#include "Common/GPU/thin3d.h"1011class GPUDriverTestScreen : public UIDialogScreenWithBackground {12public:13GPUDriverTestScreen();14~GPUDriverTestScreen();1516void CreateViews() override;17void DrawForeground(UIContext &dc) override;1819const char *tag() const override { return "GPUDriverTest"; }2021private:22void DiscardTest(UIContext &dc);23void ShaderTest(UIContext &dc);2425// Common objects26Draw::SamplerState *samplerNearest_ = nullptr;2728// Discard/depth/stencil stuff29// ===========================3031Draw::ShaderModule *discardFragShader_ = nullptr;32Draw::Pipeline *discardWriteDepthStencil_ = nullptr;33Draw::Pipeline *discardWriteDepth_ = nullptr;34Draw::Pipeline *discardWriteStencil_ = nullptr;3536// Stencil test, with and without DepthAlways37Draw::Pipeline *drawTestStencilEqual_ = nullptr;38Draw::Pipeline *drawTestStencilNotEqual_ = nullptr;39Draw::Pipeline *drawTestStencilEqualDepthAlways_ = nullptr;40Draw::Pipeline *drawTestStencilNotEqualDepthAlways_ = nullptr;4142// Depth tests with and without StencilAlways43Draw::Pipeline *drawTestStencilAlwaysDepthLessEqual_ = nullptr;44Draw::Pipeline *drawTestStencilAlwaysDepthGreater_ = nullptr;45Draw::Pipeline *drawTestDepthLessEqual_ = nullptr;46Draw::Pipeline *drawTestDepthGreater_ = nullptr;474849// Shader tests50// ============5152Draw::Pipeline *adrenoLogicDiscardPipeline_ = nullptr;53Draw::ShaderModule *adrenoLogicDiscardFragShader_ = nullptr;54Draw::ShaderModule *adrenoLogicDiscardVertShader_ = nullptr;55Draw::Pipeline *flatShadingPipeline_ = nullptr;56Draw::ShaderModule *flatFragShader_ = nullptr;57Draw::ShaderModule *flatVertShader_ = nullptr;5859UI::TabHolder *tabHolder_ = nullptr;60};616263