diff options
| author | Ellie Hermaszewska <ellieh@nvidia.com> | 2024-10-29 14:49:26 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-29 14:49:26 +0800 |
| commit | f65d756bff8d4c5cbc15bd0322a2ae8e6b896a21 (patch) | |
| tree | ea1d61342cd29368e19135000ec2948813096205 /tools/gfx/debug-layer/debug-base.h | |
| parent | a729c15e9dce9f5116a38afc66329ab2ca4cea54 (diff) | |
format
* format
* Minor test fixes
* enable checking cpp format in ci
Diffstat (limited to 'tools/gfx/debug-layer/debug-base.h')
| -rw-r--r-- | tools/gfx/debug-layer/debug-base.h | 104 |
1 files changed, 50 insertions, 54 deletions
diff --git a/tools/gfx/debug-layer/debug-base.h b/tools/gfx/debug-layer/debug-base.h index aa269cc7b..c235102c4 100644 --- a/tools/gfx/debug-layer/debug-base.h +++ b/tools/gfx/debug-layer/debug-base.h @@ -1,11 +1,11 @@ // debug-base.h #pragma once -#include "slang-gfx.h" -#include "slang-com-ptr.h" -#include "core/slang-com-object.h" #include "../command-encoder-com-forward.h" #include "../renderer-shared.h" +#include "core/slang-com-object.h" +#include "slang-com-ptr.h" +#include "slang-gfx.h" namespace gfx { @@ -14,61 +14,57 @@ using namespace Slang; namespace debug { - class DebugObjectBase : public Slang::ComObject +class DebugObjectBase : public Slang::ComObject +{ +public: + uint64_t uid; + DebugObjectBase() { - public: - uint64_t uid; - DebugObjectBase() - { - static uint64_t uidCounter = 0; - uid = ++uidCounter; - } - }; + static uint64_t uidCounter = 0; + uid = ++uidCounter; + } +}; - template<typename TInterface> - class DebugObject - : public TInterface - , public DebugObjectBase - { - public: - Slang::ComPtr<TInterface> baseObject; - }; +template<typename TInterface> +class DebugObject : public TInterface, public DebugObjectBase +{ +public: + Slang::ComPtr<TInterface> baseObject; +}; - template <typename TInterface> - class UnownedDebugObject - : public TInterface - , public DebugObjectBase - { - public: - TInterface* baseObject = nullptr; - }; +template<typename TInterface> +class UnownedDebugObject : public TInterface, public DebugObjectBase +{ +public: + TInterface* baseObject = nullptr; +}; - class DebugDevice; - class DebugShaderTable; - class DebugQueryPool; - class DebugBufferResource; - class DebugTextureResource; - class DebugResourceView; - class DebugAccelerationStructure; - class DebugSamplerState; - class DebugShaderObject; - class DebugRootShaderObject; - class DebugCommandBuffer; - class DebugResourceCommandEncoderImpl; - class DebugComputeCommandEncoder; - class DebugResourceCommandEncoder; - class DebugRenderCommandEncoder; - class DebugRayTracingCommandEncoder; - class DebugFence; - class DebugCommandQueue; - class DebugFramebuffer; - class DebugFramebufferLayout; - class DebugInputLayout; - class DebugPipelineState; - class DebugRenderPassLayout; - class DebugShaderProgram; - class DebugTransientResourceHeap; - class DebugSwapchain; +class DebugDevice; +class DebugShaderTable; +class DebugQueryPool; +class DebugBufferResource; +class DebugTextureResource; +class DebugResourceView; +class DebugAccelerationStructure; +class DebugSamplerState; +class DebugShaderObject; +class DebugRootShaderObject; +class DebugCommandBuffer; +class DebugResourceCommandEncoderImpl; +class DebugComputeCommandEncoder; +class DebugResourceCommandEncoder; +class DebugRenderCommandEncoder; +class DebugRayTracingCommandEncoder; +class DebugFence; +class DebugCommandQueue; +class DebugFramebuffer; +class DebugFramebufferLayout; +class DebugInputLayout; +class DebugPipelineState; +class DebugRenderPassLayout; +class DebugShaderProgram; +class DebugTransientResourceHeap; +class DebugSwapchain; } // namespace debug } // namespace gfx |
