Skip to content

Commit

Permalink
Use DILIGENT_CONSTEXPR macro in Metal interface headers
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMostDiligent committed Sep 15, 2023
1 parent cdc56cb commit 9b82c58
Show file tree
Hide file tree
Showing 19 changed files with 38 additions and 38 deletions.
4 changes: 2 additions & 2 deletions Graphics/GraphicsEngineMetal/interface/BottomLevelASMtl.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2019-2022 Diligent Graphics LLC
* Copyright 2019-2023 Diligent Graphics LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -32,7 +32,7 @@
DILIGENT_BEGIN_NAMESPACE(Diligent)

// {1D88A872-92F1-46D2-9D70-C31E78E42048}
static const INTERFACE_ID IID_BottomLevelASMtl =
static DILIGENT_CONSTEXPR INTERFACE_ID IID_BottomLevelASMtl =
{0x1d88a872, 0x92f1, 0x46d2, {0x9d, 0x70, 0xc3, 0x1e, 0x78, 0xe4, 0x20, 0x48}};

#define DILIGENT_INTERFACE_NAME IBottomLevelASMtl
Expand Down
4 changes: 2 additions & 2 deletions Graphics/GraphicsEngineMetal/interface/BufferMtl.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2019-2022 Diligent Graphics LLC
* Copyright 2019-2023 Diligent Graphics LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -32,7 +32,7 @@
DILIGENT_BEGIN_NAMESPACE(Diligent)

// {F8A1A3AC-923A-419D-AB9D-FE9E35DC654B}
static const INTERFACE_ID IID_BufferMtl =
static DILIGENT_CONSTEXPR INTERFACE_ID IID_BufferMtl =
{0xf8a1a3ac, 0x923a, 0x419d, {0xab, 0x9d, 0xfe, 0x9e, 0x35, 0xdc, 0x65, 0x4b}};

#define DILIGENT_INTERFACE_NAME IBufferMtl
Expand Down
4 changes: 2 additions & 2 deletions Graphics/GraphicsEngineMetal/interface/BufferViewMtl.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2019-2022 Diligent Graphics LLC
* Copyright 2019-2023 Diligent Graphics LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -32,7 +32,7 @@
DILIGENT_BEGIN_NAMESPACE(Diligent)

// {6D8B8199-1011-42B6-80DF-A9FA8B4F33FF}
static const INTERFACE_ID IID_BufferViewMtl =
static DILIGENT_CONSTEXPR INTERFACE_ID IID_BufferViewMtl =
{0x6d8b8199, 0x1011, 0x42b6, {0x80, 0xdf, 0xa9, 0xfa, 0x8b, 0x4f, 0x33, 0xff}};

#define DILIGENT_INTERFACE_NAME IBufferViewMtl
Expand Down
4 changes: 2 additions & 2 deletions Graphics/GraphicsEngineMetal/interface/DeviceContextMtl.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2019-2022 Diligent Graphics LLC
* Copyright 2019-2023 Diligent Graphics LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -34,7 +34,7 @@
DILIGENT_BEGIN_NAMESPACE(Diligent)

// {2DEA7704-C586-4BA7-B938-93B239DFA268}
static const INTERFACE_ID IID_DeviceContextMtl =
static DILIGENT_CONSTEXPR INTERFACE_ID IID_DeviceContextMtl =
{0x2dea7704, 0xc586, 0x4ba7, {0xb9, 0x38, 0x93, 0xb2, 0x39, 0xdf, 0xa2, 0x68}};

#define DILIGENT_INTERFACE_NAME IDeviceContextMtl
Expand Down
4 changes: 2 additions & 2 deletions Graphics/GraphicsEngineMetal/interface/DeviceMemoryMtl.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2019-2022 Diligent Graphics LLC
* Copyright 2019-2023 Diligent Graphics LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -32,7 +32,7 @@
DILIGENT_BEGIN_NAMESPACE(Diligent)

// {FAA1CD77-590A-408B-B0E8-C21CD062542C}
static const INTERFACE_ID IID_DeviceMemoryMtl =
static DILIGENT_CONSTEXPR INTERFACE_ID IID_DeviceMemoryMtl =
{0xfaa1cd77, 0x590a, 0x408b, {0xb0, 0xe8, 0xc2, 0x1c, 0xd0, 0x62, 0x54, 0x2c}};

#define DILIGENT_INTERFACE_NAME IDeviceMemoryMtl
Expand Down
4 changes: 2 additions & 2 deletions Graphics/GraphicsEngineMetal/interface/EngineFactoryMtl.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2019-2022 Diligent Graphics LLC
* Copyright 2019-2023 Diligent Graphics LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -38,7 +38,7 @@
DILIGENT_BEGIN_NAMESPACE(Diligent)

// {CF4A590D-2E40-4F48-9579-0D25991F963B}
static const INTERFACE_ID IID_EngineFactoryMtl =
static DILIGENT_CONSTEXPR INTERFACE_ID IID_EngineFactoryMtl =
{0xcf4a590d, 0x2e40, 0x4f48, {0x95, 0x79, 0xd, 0x25, 0x99, 0x1f, 0x96, 0x3b}};

#define DILIGENT_INTERFACE_NAME IEngineFactoryMtl
Expand Down
4 changes: 2 additions & 2 deletions Graphics/GraphicsEngineMetal/interface/FenceMtl.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2019-2022 Diligent Graphics LLC
* Copyright 2019-2023 Diligent Graphics LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -32,7 +32,7 @@
DILIGENT_BEGIN_NAMESPACE(Diligent)

// {54FE9F8F-FBBF-4ABB-8280-D980982DA364}
static const INTERFACE_ID IID_FenceMtl =
static DILIGENT_CONSTEXPR INTERFACE_ID IID_FenceMtl =
{0x54fe9f8f, 0xfbbf, 0x4abb, {0x82, 0x80, 0xd9, 0x80, 0x98, 0x2d, 0xa3, 0x64}};

#define DILIGENT_INTERFACE_NAME IFenceMtl
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2019-2022 Diligent Graphics LLC
* Copyright 2019-2023 Diligent Graphics LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -34,7 +34,7 @@
DILIGENT_BEGIN_NAMESPACE(Diligent)

// {03CF61A7-BBAF-47E6-8E09-A9BCAD701A27}
static const INTERFACE_ID IID_PipelineStateCacheMtl =
static DILIGENT_CONSTEXPR INTERFACE_ID IID_PipelineStateCacheMtl =
{0x3cf61a7, 0xbbaf, 0x47e6, {0x8e, 0x9, 0xa9, 0xbc, 0xad, 0x70, 0x1a, 0x27}};


Expand Down
4 changes: 2 additions & 2 deletions Graphics/GraphicsEngineMetal/interface/PipelineStateMtl.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2019-2022 Diligent Graphics LLC
* Copyright 2019-2023 Diligent Graphics LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -32,7 +32,7 @@
DILIGENT_BEGIN_NAMESPACE(Diligent)

// {B6A17C51-CCA9-44E1-A2DC-5DE250CF85AD}
static const INTERFACE_ID IID_PipelineStateMtl =
static DILIGENT_CONSTEXPR INTERFACE_ID IID_PipelineStateMtl =
{0xb6a17c51, 0xcca9, 0x44e1, {0xa2, 0xdc, 0x5d, 0xe2, 0x50, 0xcf, 0x85, 0xad}};

#define DILIGENT_INTERFACE_NAME IPipelineStateMtl
Expand Down
4 changes: 2 additions & 2 deletions Graphics/GraphicsEngineMetal/interface/QueryMtl.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2019-2022 Diligent Graphics LLC
* Copyright 2019-2023 Diligent Graphics LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -32,7 +32,7 @@
DILIGENT_BEGIN_NAMESPACE(Diligent)

// {514BAE55-C3E9-4D78-A013-63522FD595DA}
static const INTERFACE_ID IID_QueryMtl =
static DILIGENT_CONSTEXPR INTERFACE_ID IID_QueryMtl =
{0x514bae55, 0xc3e9, 0x4d78, {0xa0, 0x13, 0x63, 0x52, 0x2f, 0xd5, 0x95, 0xda}};

#define DILIGENT_INTERFACE_NAME IQueryMtl
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2019-2022 Diligent Graphics LLC
* Copyright 2019-2023 Diligent Graphics LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -38,7 +38,7 @@
DILIGENT_BEGIN_NAMESPACE(Diligent)

// {89148E0E-1300-4FF2-BEA4-F1127ED24CF9}
static const INTERFACE_ID IID_RasterizationRateMapMtl =
static DILIGENT_CONSTEXPR INTERFACE_ID IID_RasterizationRateMapMtl =
{0x89148e0e, 0x1300, 0x4ff2, {0xbe, 0xa4, 0xf1, 0x12, 0x7e, 0xd2, 0x4c, 0xf9}};

#define DILIGENT_INTERFACE_NAME IRasterizationRateMapMtl
Expand Down
4 changes: 2 additions & 2 deletions Graphics/GraphicsEngineMetal/interface/RenderDeviceMtl.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2019-2022 Diligent Graphics LLC
* Copyright 2019-2023 Diligent Graphics LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -37,7 +37,7 @@
DILIGENT_BEGIN_NAMESPACE(Diligent)

// {8D483E4A-2D53-47B2-B8D7-276F4CE57F68}
static const INTERFACE_ID IID_RenderDeviceMtl =
static DILIGENT_CONSTEXPR INTERFACE_ID IID_RenderDeviceMtl =
{0x8d483e4a, 0x2d53, 0x47b2, {0xb8, 0xd7, 0x27, 0x6f, 0x4c, 0xe5, 0x7f, 0x68}};

#define DILIGENT_INTERFACE_NAME IRenderDeviceMtl
Expand Down
4 changes: 2 additions & 2 deletions Graphics/GraphicsEngineMetal/interface/SamplerMtl.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2019-2022 Diligent Graphics LLC
* Copyright 2019-2023 Diligent Graphics LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -32,7 +32,7 @@
DILIGENT_BEGIN_NAMESPACE(Diligent)

// {73F8C099-049B-4C81-AD19-C98963AC7FEB}
static const INTERFACE_ID IID_SamplerMtl =
static DILIGENT_CONSTEXPR INTERFACE_ID IID_SamplerMtl =
{0x73f8c099, 0x49b, 0x4c81, {0xad, 0x19, 0xc9, 0x89, 0x63, 0xac, 0x7f, 0xeb}};

#define DILIGENT_INTERFACE_NAME ISamplerMtl
Expand Down
4 changes: 2 additions & 2 deletions Graphics/GraphicsEngineMetal/interface/ShaderMtl.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2019-2022 Diligent Graphics LLC
* Copyright 2019-2023 Diligent Graphics LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -32,7 +32,7 @@
DILIGENT_BEGIN_NAMESPACE(Diligent)

// {07182C29-CC3B-43B2-99D8-A77F6FECBA82}
static const INTERFACE_ID IID_ShaderMtl =
static DILIGENT_CONSTEXPR INTERFACE_ID IID_ShaderMtl =
{0x7182c29, 0xcc3b, 0x43b2, {0x99, 0xd8, 0xa7, 0x7f, 0x6f, 0xec, 0xba, 0x82}};

#define DILIGENT_INTERFACE_NAME IShaderMtl
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2019-2022 Diligent Graphics LLC
* Copyright 2019-2023 Diligent Graphics LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -32,7 +32,7 @@
DILIGENT_BEGIN_NAMESPACE(Diligent)

// {4D7AF38E-4650-4A11-B33B-FFC70A8CD68B}
static const INTERFACE_ID IID_ShaderResourceBindingMtl =
static DILIGENT_CONSTEXPR INTERFACE_ID IID_ShaderResourceBindingMtl =
{0x4d7af38e, 0x4650, 0x4a11, {0xb3, 0x3b, 0xff, 0xc7, 0xa, 0x8c, 0xd6, 0x8b}};

#define DILIGENT_INTERFACE_NAME IShaderResourceBindingMtl
Expand Down
4 changes: 2 additions & 2 deletions Graphics/GraphicsEngineMetal/interface/SwapChainMtl.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2019-2022 Diligent Graphics LLC
* Copyright 2019-2023 Diligent Graphics LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -33,7 +33,7 @@
DILIGENT_BEGIN_NAMESPACE(Diligent)

// {8ACDD0D9-FF1C-4A78-9866-924459A0D456}
static const INTERFACE_ID IID_SwapChainMtl =
static DILIGENT_CONSTEXPR INTERFACE_ID IID_SwapChainMtl =
{0x8acdd0d9, 0xff1c, 0x4a78, {0x98, 0x66, 0x92, 0x44, 0x59, 0xa0, 0xd4, 0x56}};

#define DILIGENT_INTERFACE_NAME ISwapChainMtl
Expand Down
4 changes: 2 additions & 2 deletions Graphics/GraphicsEngineMetal/interface/TextureMtl.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2019-2022 Diligent Graphics LLC
* Copyright 2019-2023 Diligent Graphics LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -32,7 +32,7 @@
DILIGENT_BEGIN_NAMESPACE(Diligent)

// {D3A85032-224D-45E5-9825-3AABD61A5EA5}
static const INTERFACE_ID IID_TextureMtl =
static DILIGENT_CONSTEXPR INTERFACE_ID IID_TextureMtl =
{0xd3a85032, 0x224d, 0x45e5, {0x98, 0x25, 0x3a, 0xab, 0xd6, 0x1a, 0x5e, 0xa5}};

#define DILIGENT_INTERFACE_NAME ITextureMtl
Expand Down
4 changes: 2 additions & 2 deletions Graphics/GraphicsEngineMetal/interface/TextureViewMtl.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2019-2022 Diligent Graphics LLC
* Copyright 2019-2023 Diligent Graphics LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -32,7 +32,7 @@
DILIGENT_BEGIN_NAMESPACE(Diligent)

// {94C0D9C3-61E7-4358-AB9F-066EAD84D6F1}
static const INTERFACE_ID IID_TextureViewMtl =
static DILIGENT_CONSTEXPR INTERFACE_ID IID_TextureViewMtl =
{0x94c0d9c3, 0x61e7, 0x4358, {0xab, 0x9f, 0x6, 0x6e, 0xad, 0x84, 0xd6, 0xf1}};

#define DILIGENT_INTERFACE_NAME ITextureViewMtl
Expand Down
4 changes: 2 additions & 2 deletions Graphics/GraphicsEngineMetal/interface/TopLevelASMtl.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2019-2022 Diligent Graphics LLC
* Copyright 2019-2023 Diligent Graphics LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -32,7 +32,7 @@
DILIGENT_BEGIN_NAMESPACE(Diligent)

// {2156C051-350D-4FCE-84F3-295B536622D3}
static const INTERFACE_ID IID_TopLevelASMtl =
static DILIGENT_CONSTEXPR INTERFACE_ID IID_TopLevelASMtl =
{0x2156c051, 0x350d, 0x4fce, {0x84, 0xf3, 0x29, 0x5b, 0x53, 0x66, 0x22, 0xd3}};

#define DILIGENT_INTERFACE_NAME ITopLevelASMtl
Expand Down

0 comments on commit 9b82c58

Please sign in to comment.