Skip to content

Commit 032cd1b

Browse files
IDXCompiler: use struct instead of class type
1 parent 68d4799 commit 032cd1b

File tree

5 files changed

+13
-14
lines changed

5 files changed

+13
-14
lines changed

Graphics/GraphicsEngineD3D12/include/PipelineStateD3D12Impl.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2019-2024 Diligent Graphics LLC
2+
* Copyright 2019-2025 Diligent Graphics LLC
33
* Copyright 2015-2019 Egor Yusov
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");
@@ -102,7 +102,7 @@ class PipelineStateD3D12Impl final : public PipelineStateBase<EngineD3D12ImplTra
102102
const RefCntAutoPtr<PipelineResourceSignatureD3D12Impl>* pSignatures,
103103
Uint32 SignatureCount,
104104
const RootSignatureD3D12& RootSig,
105-
class IDXCompiler* pDxCompiler,
105+
struct IDXCompiler* pDxCompiler,
106106
LocalRootSignatureD3D12* pLocalRootSig = nullptr,
107107
const TValidateShaderResourcesFn& ValidateShaderResourcesFn = {},
108108
const TValidateShaderBindingsFn& VlidateBindingsFn = {}) noexcept(false);

Graphics/GraphicsEngineD3D12/include/ShaderResourcesD3D12.hpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2019-2024 Diligent Graphics LLC
2+
* Copyright 2019-2025 Diligent Graphics LLC
33
* Copyright 2015-2019 Egor Yusov
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");
@@ -40,11 +40,11 @@ class ShaderResourcesD3D12 final : public ShaderResources
4040
{
4141
public:
4242
// Loads shader resources from the compiled shader bytecode
43-
ShaderResourcesD3D12(IDataBlob* pShaderBytecode,
44-
const ShaderDesc& ShdrDesc,
45-
const char* CombinedSamplerSuffix,
46-
class IDXCompiler* pDXCompiler,
47-
bool LoadConstantBufferReflection);
43+
ShaderResourcesD3D12(IDataBlob* pShaderBytecode,
44+
const ShaderDesc& ShdrDesc,
45+
const char* CombinedSamplerSuffix,
46+
struct IDXCompiler* pDXCompiler,
47+
bool LoadConstantBufferReflection);
4848

4949
// clang-format off
5050
ShaderResourcesD3D12 (const ShaderResourcesD3D12&) = delete;

Graphics/GraphicsEngineD3DBase/include/ShaderD3DBase.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2019-2024 Diligent Graphics LLC
2+
* Copyright 2019-2025 Diligent Graphics LLC
33
* Copyright 2015-2019 Egor Yusov
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");
@@ -46,7 +46,7 @@
4646
namespace Diligent
4747
{
4848

49-
class IDXCompiler;
49+
struct IDXCompiler;
5050

5151
// AddRef/Release methods of ID3DBlob are not thread safe, so use Diligent::IDataBlob.
5252
RefCntAutoPtr<IDataBlob> CompileD3DBytecode(const ShaderCreateInfo& ShaderCI,

Graphics/GraphicsEngineVulkan/include/ShaderVkImpl.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2019-2024 Diligent Graphics LLC
2+
* Copyright 2019-2025 Diligent Graphics LLC
33
* Copyright 2015-2019 Egor Yusov
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");
@@ -38,7 +38,7 @@
3838

3939
namespace Diligent
4040
{
41-
class IDXCompiler;
41+
struct IDXCompiler;
4242

4343
/// Shader object object implementation in Vulkan backend.
4444
class ShaderVkImpl final : public ShaderBase<EngineVkImplTraits>

Graphics/ShaderTools/include/DXCompiler.hpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,8 @@ enum class DXCompilerTarget
5252
};
5353

5454
/// DXC compiler interface.
55-
class IDXCompiler
55+
struct IDXCompiler
5656
{
57-
public:
5857
virtual ~IDXCompiler() {}
5958

6059
/// Returns the maximum shader model supported by the compiler.

0 commit comments

Comments
 (0)