8 #include "irendertarget.h"
9 #include "rendertexture2d.h"
12 #include <nap/resource.h>
13 #include <nap/resourceptr.h>
14 #include <vulkan/vulkan_core.h>
19 class RenderTexture2D;
93 virtual void beginRendering()
override;
112 virtual void endRendering()
override;
117 virtual const glm::ivec2 getBufferSize()
const override;
160 virtual VkFormat getColorFormat()
const override;
165 virtual VkFormat getDepthFormat()
const override;
170 virtual VkSampleCountFlagBits getSampleCount()
const override;
175 virtual bool getSampleShadingEnabled()
const override;
178 bool mSampleShading =
true;
186 VkFramebuffer mFramebuffer = VK_NULL_HANDLE;
187 VkRenderPass mRenderPass = VK_NULL_HANDLE;
188 VkSampleCountFlagBits mRasterizationSamples = VK_SAMPLE_COUNT_1_BIT;
191 bool mHasDepthTexture =
false;
Definition: irendertarget.h:21
Definition: rendertexture2d.h:69
ERasterizationSamples
Definition: renderutils.h:25
Definition: objectptr.h:154
ECullWindingOrder
Definition: materialcommon.h:30
Definition: errorstate.h:19
bool hasDepthTexture() const
Definition: rendertarget.h:143
virtual void setClearColor(const RGBAColorFloat &color) override
Definition: rendertarget.h:123
ResourcePtr< DepthRenderTexture2D > mDepthTexture
Property: 'DepthTexture' optional depth texture to render to.
Definition: rendertarget.h:182
Definition: imagedata.h:23
Definition: renderservice.h:275
virtual VkRenderPass getRenderPass() const override
Definition: rendertarget.h:138
Definition: rendertarget.h:53
Definition: templateapp.h:17
Definition: resource.h:19
ResourcePtr< RenderTexture2D > mColorTexture
Property: 'ColorTexture' texture to render to.
Definition: rendertarget.h:181
virtual const RGBAColorFloat & getClearColor() const override
Definition: rendertarget.h:128
Definition: rendertexture2d.h:24
virtual ECullWindingOrder getWindingOrder() const override
Definition: rendertarget.h:133