8 #include "irendertarget.h"
9 #include "rendertexturecube.h"
12 #include <nap/resource.h>
13 #include <nap/resourceptr.h>
14 #include <vulkan/vulkan_core.h>
19 class DepthRenderTextureCube;
20 class CubeDepthRenderTarget;
22 class PerspCameraComponentInstance;
65 virtual void beginRendering()
override;
70 virtual void endRendering()
override;
75 virtual const glm::ivec2
getBufferSize()
const override {
return mSize; }
96 virtual VkRenderPass
getRenderPass()
const override {
return mRenderPass; }
112 virtual VkSampleCountFlagBits
getSampleCount()
const override {
return VK_SAMPLE_COUNT_1_BIT; }
162 bool mSampleShading =
true;
163 float mClearValue = 1.0f;
178 void setLayerIndex(
uint index);
181 VkRenderPass mRenderPass = VK_NULL_HANDLE;
182 VkFormat mVulkanDepthFormat = VK_FORMAT_UNDEFINED;
184 std::array<VkFramebuffer, TextureCube::layerCount> mFramebuffers = { VK_NULL_HANDLE };
188 uint mLayerIndex = 0U;
189 bool mIsFirstPass =
true;
unsigned int uint
Definition: numeric.h:23
virtual VkSampleCountFlagBits getSampleCount() const override
Definition: cubedepthrendertarget.h:112
virtual bool getSampleShadingEnabled() const override
Definition: cubedepthrendertarget.h:117
Definition: irendertarget.h:21
virtual VkRenderPass getRenderPass() const override
Definition: cubedepthrendertarget.h:96
ERasterizationSamples
Definition: renderutils.h:25
EDepthFormat
Definition: rendertexturecube.h:99
Definition: objectptr.h:154
ECullWindingOrder
Definition: materialcommon.h:30
Definition: errorstate.h:19
virtual const glm::ivec2 getBufferSize() const override
Definition: cubedepthrendertarget.h:75
glm::ivec2 getSize() const
Definition: cubedepthrendertarget.h:122
std::function< void(CubeDepthRenderTarget &target, const glm::mat4 &projection, const glm::mat4 &view)> CubeDepthRenderTargetCallback
Definition: cubedepthrendertarget.h:25
Definition: renderservice.h:275
ResourcePtr< DepthRenderTextureCube > mCubeDepthTexture
Property: 'CubeDepthTexture' Cube depth texture to render to.
Definition: cubedepthrendertarget.h:167
@ D32
32 bit float, 1 component
Definition: perspcameracomponent.h:46
virtual void setClearColor(const RGBAColorFloat &color) override
Definition: cubedepthrendertarget.h:81
Definition: templateapp.h:17
virtual VkFormat getColorFormat() const override
Definition: cubedepthrendertarget.h:101
virtual const RGBAColorFloat & getClearColor() const override
Definition: cubedepthrendertarget.h:86
Definition: resource.h:19
virtual VkFormat getDepthFormat() const override
Definition: cubedepthrendertarget.h:106
virtual ECullWindingOrder getWindingOrder() const override
Definition: cubedepthrendertarget.h:91
Definition: cubedepthrendertarget.h:40