8 #include "irendertarget.h"
9 #include "rendertexture2d.h"
10 #include "texturelink.h"
13 #include <nap/resource.h>
14 #include <nap/resourceptr.h>
15 #include <vulkan/vulkan_core.h>
20 class RenderTexture2D;
88 virtual void beginRendering()
override;
107 virtual void endRendering()
override;
112 virtual const glm::ivec2 getBufferSize()
const override;
150 virtual VkFormat getColorFormat()
const override;
155 virtual VkFormat getDepthFormat()
const override;
160 virtual VkSampleCountFlagBits getSampleCount()
const override;
165 virtual bool getSampleShadingEnabled()
const override;
170 virtual VkImageLayout
getFinalLayout()
const override {
return VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; }
173 bool mSampleShading =
true;
175 float mClearDepth = 1.0f;
182 VkFramebuffer mFramebuffer = VK_NULL_HANDLE;
183 VkRenderPass mRenderPass = VK_NULL_HANDLE;
184 VkSampleCountFlagBits mRasterizationSamples = VK_SAMPLE_COUNT_1_BIT;
virtual void setClearColor(const RGBAColorFloat &color) override
Definition: colordepthrendertarget.h:118
Definition: irendertarget.h:21
Definition: texturelink.h:51
virtual const RGBAColorFloat & getClearColor() const override
Definition: colordepthrendertarget.h:123
Definition: rendertexture2d.h:67
ERasterizationSamples
Definition: renderutils.h:25
virtual VkImageLayout getFinalLayout() const override
Definition: colordepthrendertarget.h:170
Definition: objectptr.h:150
ECullWindingOrder
Definition: materialcommon.h:30
Definition: errorstate.h:19
virtual ECullWindingOrder getWindingOrder() const override
Definition: colordepthrendertarget.h:128
Definition: imagedata.h:23
Definition: renderservice.h:198
Definition: templateapp.h:17
Definition: resource.h:19
ResourcePtr< DepthRenderTexture2D > mDepthTexture
Property: 'DepthTexture' depth texture to render to.
Definition: colordepthrendertarget.h:178
ResourcePtr< RenderTexture2D > mColorTexture
Property: 'ColorTexture' color texture to render to.
Definition: colordepthrendertarget.h:177
Definition: colordepthrendertarget.h:48
virtual VkRenderPass getRenderPass() const override
Definition: colordepthrendertarget.h:133
Definition: rendertexture2d.h:24