| 123456789101112131415161718192021222324252627282930313233343536373839 |
- /*
- * Copyright (c) Contributors to the Open 3D Engine Project.
- * For complete copyright and license terms please see the LICENSE at the root of this distribution.
- *
- * SPDX-License-Identifier: Apache-2.0 OR MIT
- *
- */
- #pragma once
- struct ImGuiContext;
- #include<AtomCore/Instance/Instance.h>
- namespace AZ
- {
- namespace RPI
- {
- class Material;
- }
- }
- namespace AtomSampleViewer
- {
- //! Provides a dialog that shows technical details about individual materials, for example the list of
- //! shaders, the shader options requested, and which shader variant was selected.
- class ImGuiMaterialDetails
- {
- public:
- void SetMaterial(AZ::Data::Instance<AZ::RPI::Material> material);
- void OpenDialog();
- void Tick();
- private:
- AZ::Data::Instance<AZ::RPI::Material> m_material;
- bool m_dialogIsOpen = false;
- };
- } // namespace AtomSampleViewer
|