vOOlkan
An object oriented approach to Vulkan
DepthStencil.h
Go to the documentation of this file.
1#ifndef VULKAN_DEPTHSTENCIL
2#define VULKAN_DEPTHSTENCIL
3
4#include <vulkan/vulkan.h>
5
6
7namespace Vulkan::PipelineOptions { class DepthStencil; }
8
9//TODO actually fill this class
11public:
12
13 DepthStencil() : depthStencil{} {
14 depthStencil.sType = VK_STRUCTURE_TYPE_PIPELINE_DEPTH_STENCIL_STATE_CREATE_INFO;
15 depthStencil.depthTestEnable = VK_TRUE;
16 depthStencil.depthWriteEnable = VK_TRUE;
17 depthStencil.depthCompareOp = VK_COMPARE_OP_LESS;
18 depthStencil.depthBoundsTestEnable = VK_FALSE;
19 depthStencil.minDepthBounds = 0.0f;
20 depthStencil.maxDepthBounds = 1.0f;
21 depthStencil.stencilTestEnable = VK_FALSE;
22 depthStencil.front = {};
23 depthStencil.back = {};
24 }
25
26
27 DepthStencil(VkPipelineDepthStencilStateCreateInfo baseDepthStencil) : depthStencil{ baseDepthStencil } {}
28
29
30 const VkPipelineDepthStencilStateCreateInfo& operator+() const {
31 return depthStencil;
32 }
33
34private:
35 VkPipelineDepthStencilStateCreateInfo depthStencil;
36};
37
38#endif
Definition: DepthStencil.h:10
const VkPipelineDepthStencilStateCreateInfo & operator+() const
Definition: DepthStencil.h:30
DepthStencil()
Definition: DepthStencil.h:13
DepthStencil(VkPipelineDepthStencilStateCreateInfo baseDepthStencil)
Definition: DepthStencil.h:27
Definition: Attachment.h:11