Diligent Engine  v.2.4.g
PipelineStateD3D11.h
Go to the documentation of this file.
1 /*
2  * Copyright 2019-2021 Diligent Graphics LLC
3  * Copyright 2015-2019 Egor Yusov
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  * In no event and under no legal theory, whether in tort (including negligence),
18  * contract, or otherwise, unless required by applicable law (such as deliberate
19  * and grossly negligent acts) or agreed to in writing, shall any Contributor be
20  * liable for any damages, including any direct, indirect, special, incidental,
21  * or consequential damages of any character arising as a result of this License or
22  * out of the use or inability to use the software (including but not limited to damages
23  * for loss of goodwill, work stoppage, computer failure or malfunction, or any and
24  * all other commercial damages or losses), even if such Contributor has been advised
25  * of the possibility of such damages.
26  */
27 
28 #pragma once
29 
32 
33 #include "../../GraphicsEngine/interface/PipelineState.h"
34 
36 
37 // {3EA6E3F4-9966-47FC-8CE8-0EB3E2273061}
38 static const struct INTERFACE_ID IID_PipelineStateD3D11 =
39  {0x3ea6e3f4, 0x9966, 0x47fc, {0x8c, 0xe8, 0xe, 0xb3, 0xe2, 0x27, 0x30, 0x61}};
40 
41 #define DILIGENT_INTERFACE_NAME IPipelineStateD3D11
42 #include "../../../Primitives/interface/DefineInterfaceHelperMacros.h"
43 
44 #define IPipelineStateD3D11InclusiveMethods \
45  IPipelineStateInclusiveMethods; \
46  IPipelineStateD3D11Methods PipelineStateD3D11
47 
50 {
52 
55  VIRTUAL ID3D11BlendState* METHOD(GetD3D11BlendState)(THIS) PURE;
56 
57 
59 
62  VIRTUAL ID3D11RasterizerState* METHOD(GetD3D11RasterizerState)(THIS) PURE;
63 
64 
66 
69  VIRTUAL ID3D11DepthStencilState* METHOD(GetD3D11DepthStencilState)(THIS) PURE;
70 
72 
75  VIRTUAL ID3D11InputLayout* METHOD(GetD3D11InputLayout)(THIS) PURE;
76 
78 
81  VIRTUAL ID3D11VertexShader* METHOD(GetD3D11VertexShader)(THIS) PURE;
82 
84 
87  VIRTUAL ID3D11PixelShader* METHOD(GetD3D11PixelShader)(THIS) PURE;
88 
89 
91 
94  VIRTUAL ID3D11GeometryShader* METHOD(GetD3D11GeometryShader)(THIS) PURE;
95 
97 
100  VIRTUAL ID3D11DomainShader* METHOD(GetD3D11DomainShader)(THIS) PURE;
101 
103 
106  VIRTUAL ID3D11HullShader* METHOD(GetD3D11HullShader)(THIS) PURE;
107 
109 
112  VIRTUAL ID3D11ComputeShader* METHOD(GetD3D11ComputeShader)(THIS) PURE;
113 };
115 
116 #include "../../../Primitives/interface/UndefInterfaceHelperMacros.h"
117 
118 #if DILIGENT_C_INTERFACE
119 
120 // clang-format off
121 
122 # define IPipelineStateD3D11_GetD3D11BlendState(This) CALL_IFACE_METHOD(PipelineStateD3D11, GetD3D11BlendState, This)
123 # define IPipelineStateD3D11_GetD3D11RasterizerState(This) CALL_IFACE_METHOD(PipelineStateD3D11, GetD3D11RasterizerState, This)
124 # define IPipelineStateD3D11_GetD3D11DepthStencilState(This) CALL_IFACE_METHOD(PipelineStateD3D11, GetD3D11DepthStencilState, This)
125 # define IPipelineStateD3D11_GetD3D11InputLayout(This) CALL_IFACE_METHOD(PipelineStateD3D11, GetD3D11InputLayout, This)
126 # define IPipelineStateD3D11_GetD3D11VertexShader(This) CALL_IFACE_METHOD(PipelineStateD3D11, GetD3D11VertexShader, This)
127 # define IPipelineStateD3D11_GetD3D11PixelShader(This) CALL_IFACE_METHOD(PipelineStateD3D11, GetD3D11PixelShader, This)
128 # define IPipelineStateD3D11_GetD3D11GeometryShader(This) CALL_IFACE_METHOD(PipelineStateD3D11, GetD3D11GeometryShader, This)
129 # define IPipelineStateD3D11_GetD3D11DomainShader(This) CALL_IFACE_METHOD(PipelineStateD3D11, GetD3D11DomainShader, This)
130 # define IPipelineStateD3D11_GetD3D11HullShader(This) CALL_IFACE_METHOD(PipelineStateD3D11, GetD3D11HullShader, This)
131 # define IPipelineStateD3D11_GetD3D11ComputeShader(This) CALL_IFACE_METHOD(PipelineStateD3D11, GetD3D11ComputeShader, This)
132 
133 // clang-format on
134 
135 #endif
136 
137 DILIGENT_END_NAMESPACE // namespace Diligent
DILIGENT_END_INTERFACE
#define DILIGENT_END_INTERFACE
Definition: DefineInterfaceHelperMacros.h:88
Diligent::INTERFACE_ID
struct INTERFACE_ID INTERFACE_ID
Definition: InterfaceID.h:54
VIRTUAL
#define VIRTUAL
Definition: DefineInterfaceHelperMacros.h:83
Diligent::IPipelineState
Pipeline state interface.
Definition: PipelineState.h:505
DILIGENT_BEGIN_INTERFACE
#define DILIGENT_BEGIN_INTERFACE(Name, Base)
Definition: CommonDefinitions.h:97
THIS
#define THIS
Definition: DefineInterfaceHelperMacros.h:81
PURE
#define PURE
Definition: DefineInterfaceHelperMacros.h:85
DILIGENT_END_NAMESPACE
#define DILIGENT_END_NAMESPACE
Definition: CommonDefinitions.h:86
Diligent::IPipelineStateD3D11
Exposes Direct3D11-specific functionality of a pipeline state object.
Definition: PipelineStateD3D11.h:49
METHOD
#define METHOD(Name)
Definition: DefineInterfaceHelperMacros.h:87
DILIGENT_BEGIN_NAMESPACE
#define DILIGENT_BEGIN_NAMESPACE(Name)
Definition: CommonDefinitions.h:82
Diligent
The library uses Direct3D-style math:
Definition: AdvancedMath.hpp:37