Nebula
Toggle main menu visibility
Loading...
Searching...
No Matches
vkdepthstenciltarget.h
Go to the documentation of this file.
1
#pragma once
2
//------------------------------------------------------------------------------
8
//------------------------------------------------------------------------------
9
#include "
core/refcounted.h
"
10
#include "coregraphics/base/depthstenciltargetbase.h"
11
namespace
Vulkan
12
{
13
class
VkDepthStencilTarget
:
public
Base::DepthStencilTargetBase
14
{
15
__DeclareClass
(
VkDepthStencilTarget
);
16
public
:
18
VkDepthStencilTarget
();
20
virtual
~VkDepthStencilTarget
();
21
23
void
Setup
();
25
void
Discard
();
26
28
void
OnDisplayResized
(
SizeT
width,
SizeT
height);
29
31
void
BeginPass
();
33
void
EndPass
();
34
36
const
VkViewport&
GetVkViewport
()
const
;
38
const
VkRect2D&
GetVkScissorRect
()
const
;
40
VkImageView
GetVkImageView
();
41
private
:
42
43
VkViewport
viewport
;
44
VkRect2D
scissor
;
45
VkImage
image
;
46
VkDeviceMemory
mem
;
47
VkImageView
view
;
48
};
49
50
//------------------------------------------------------------------------------
53
inline
const
VkViewport&
54
VkDepthStencilTarget::GetVkViewport
()
const
55
{
56
return
this->
viewport
;
57
}
58
59
//------------------------------------------------------------------------------
62
inline
const
VkRect2D&
63
VkDepthStencilTarget::GetVkScissorRect
()
const
64
{
65
return
this->
scissor
;
66
}
67
68
//------------------------------------------------------------------------------
71
inline
VkImageView
72
VkDepthStencilTarget::GetVkImageView
()
73
{
74
return
this->
view
;
75
}
76
77
}
// namespace Vulkan
Vulkan::VkDepthStencilTarget::GetVkImageView
VkImageView GetVkImageView()
return handle to the view
Definition
vkdepthstenciltarget.h:72
Vulkan::VkDepthStencilTarget::EndPass
void EndPass()
ends pass
Definition
vkdepthstenciltarget.cc:172
Vulkan::VkDepthStencilTarget::OnDisplayResized
void OnDisplayResized(SizeT width, SizeT height)
called after we change the display size
Definition
vkdepthstenciltarget.cc:145
Vulkan::VkDepthStencilTarget::view
VkImageView view
Definition
vkdepthstenciltarget.h:47
Vulkan::VkDepthStencilTarget::scissor
VkRect2D scissor
Definition
vkdepthstenciltarget.h:44
Vulkan::VkDepthStencilTarget::Setup
void Setup()
setup depth-stencil target
Definition
vkdepthstenciltarget.cc:37
Vulkan::VkDepthStencilTarget::mem
VkDeviceMemory mem
Definition
vkdepthstenciltarget.h:46
Vulkan::VkDepthStencilTarget::image
VkImage image
Definition
vkdepthstenciltarget.h:45
Vulkan::VkDepthStencilTarget::BeginPass
void BeginPass()
begins pass
Definition
vkdepthstenciltarget.cc:154
Vulkan::VkDepthStencilTarget::__DeclareClass
__DeclareClass(VkDepthStencilTarget)
Vulkan::VkDepthStencilTarget::VkDepthStencilTarget
VkDepthStencilTarget()
constructor
Definition
vkdepthstenciltarget.cc:20
Vulkan::VkDepthStencilTarget::GetVkScissorRect
const VkRect2D & GetVkScissorRect() const
get the vulkan scissor rectangles
Definition
vkdepthstenciltarget.h:63
Vulkan::VkDepthStencilTarget::~VkDepthStencilTarget
virtual ~VkDepthStencilTarget()
destructor
Definition
vkdepthstenciltarget.cc:28
Vulkan::VkDepthStencilTarget::viewport
VkViewport viewport
Definition
vkdepthstenciltarget.h:43
Vulkan::VkDepthStencilTarget::Discard
void Discard()
discard depth-stencil target
Definition
vkdepthstenciltarget.cc:133
Vulkan::VkDepthStencilTarget::GetVkViewport
const VkViewport & GetVkViewport() const
get the vulkan viewports
Definition
vkdepthstenciltarget.h:54
Vulkan
Vulkan implementation of GPU acceleration structure.
Definition
vkaccelerationstructure.cc:15
refcounted.h
SizeT
int SizeT
Definition
types.h:42
code
render
coregraphics
vk
vkdepthstenciltarget.h
Generated on
for Nebula. Dark theme by
Tilen Majerle
. All rights reserved.