Diligent Engine
v.2.4.g
Graphics
GraphicsEngine
interface
Framebuffer.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
30
// clang-format off
31
34
35
#include "
DeviceObject.h
"
36
#include "
RenderPass.h
"
37
#include "
TextureView.h
"
38
39
DILIGENT_BEGIN_NAMESPACE
(
Diligent
)
40
41
// {05DA9E47-3CA6-4F96-A967-1DDDC53181A6}
42
static
const
struct
INTERFACE_ID
IID_Framebuffer =
43
{ 0x5da9e47, 0x3ca6, 0x4f96, { 0xa9, 0x67, 0x1d, 0xdd, 0xc5, 0x31, 0x81, 0xa6 } };
44
46
struct
FramebufferDesc
DILIGENT_DERIVE
(
DeviceObjectAttribs
)
47
49
IRenderPass
* pRenderPass
DEFAULT_INITIALIZER
(
nullptr
);
50
52
Uint32
AttachmentCount
DEFAULT_INITIALIZER
(0);
53
55
ITextureView
*
const
* ppAttachments
DEFAULT_INITIALIZER
(
nullptr
);
56
58
Uint32
Width
DEFAULT_INITIALIZER
(0);
59
61
Uint32
Height
DEFAULT_INITIALIZER
(0);
62
64
Uint32
NumArraySlices
DEFAULT_INITIALIZER
(0);
65
};
66
typedef
struct
FramebufferDesc
FramebufferDesc
;
67
68
#if DILIGENT_CPP_INTERFACE
69
71
73
class
IFramebuffer
:
public
IDeviceObject
74
{
75
public
:
76
virtual
const
FramebufferDesc
&
DILIGENT_CALL_TYPE
GetDesc()
const override
= 0;
77
};
78
79
#else
80
81
struct
IFramebuffer
;
82
83
// C requires that a struct or union has at least one member
84
//struct IFramebufferMethods
85
//{
86
//};
87
88
struct
IFramebufferVtbl
89
{
90
struct
IObjectMethods Object;
91
struct
IDeviceObjectMethods DeviceObject;
92
//struct IFramebufferMethods Framebuffer;
93
};
94
95
typedef
struct
IFramebuffer
96
{
97
struct
IFramebufferVtbl* pVtbl;
98
} IFramebuffer;
99
100
#endif
101
102
DILIGENT_END_NAMESPACE
// namespace Diligent
Diligent::INTERFACE_ID
struct INTERFACE_ID INTERFACE_ID
Definition:
InterfaceID.h:54
TextureView.h
Diligent::ITextureView
Texture view interface.
Definition:
TextureView.h:202
Diligent::IFramebuffer
Framebuffer interface.
Definition:
Framebuffer.h:73
Diligent::IDeviceObject
Base interface for all objects created by the render device Diligent::IRenderDevice.
Definition:
DeviceObject.h:52
Diligent::DeviceObjectAttribs
Describes common device object attributes.
Definition:
GraphicsTypes.h:1196
DILIGENT_END_NAMESPACE
#define DILIGENT_END_NAMESPACE
Definition:
CommonDefinitions.h:86
DILIGENT_DERIVE
#define DILIGENT_DERIVE(TypeName)
Definition:
CommonDefinitions.h:90
DILIGENT_CALL_TYPE
#define DILIGENT_CALL_TYPE
Definition:
CommonDefinitions.h:45
Diligent::Uint32
uint32_t Uint32
32-bit unsigned integer
Definition:
BasicTypes.h:51
DEFAULT_INITIALIZER
#define DEFAULT_INITIALIZER(x)
Definition:
CommonDefinitions.h:93
RenderPass.h
DeviceObject.h
Diligent::FramebufferDesc
Framebuffer description.
Definition:
Framebuffer.h:46
DILIGENT_BEGIN_NAMESPACE
#define DILIGENT_BEGIN_NAMESPACE(Name)
Definition:
CommonDefinitions.h:82
Diligent::IRenderPass
Render pass interface.
Definition:
RenderPass.h:369
Diligent
The library uses Direct3D-style math:
Definition:
AdvancedMath.hpp:37
Generated by
1.8.17