Saga3D API Documentation  1.0-RC4
SRenderPass.h
Go to the documentation of this file.
1 #ifndef __SRENDER_PASS_H_INCLUDED__
2 #define __SRENDER_PASS_H_INCLUDED__
3 
4 #include "SGPUResource.h"
5 #include "STexture.h"
6 #include "SRenderPassState.h"
7 
8 namespace saga
9 {
10 namespace video
11 {
12 
13  struct SRenderPass : public SGPUResource
14  {
15  std::array<STexture::HandleType, MAX_COLOR_ATTACHMENTS> ColorAttachments = { NULL_GPU_RESOURCE_HANDLE };
18  bool UseDefaultAttachments = true;
19  bool UpdateAttachments = false;
20  bool DrawGeometry = true;
21  bool ScissorTest = false;
22  int AttachmentCount = 0;
23  glm::ivec4 Scissor;
24  glm::vec4 Viewport;
25  };
26 
28 
29 } // namespace scene
30 } // namespace saga
31 
32 #endif // __SRENDER_PASS_H_INCLUDED__
33 
saga::video::SRenderPass::ColorAttachments
std::array< STexture::HandleType, MAX_COLOR_ATTACHMENTS > ColorAttachments
Definition: SRenderPass.h:15
saga::video::NULL_GPU_RESOURCE_HANDLE
constexpr SGPUResource::HandleType NULL_GPU_RESOURCE_HANDLE
Definition: SGPUResource.h:17
saga::video::SRenderPass::UpdateAttachments
bool UpdateAttachments
Definition: SRenderPass.h:19
saga::video::SRenderPass::DepthStencilAttachment
STexture::HandleType DepthStencilAttachment
Definition: SRenderPass.h:16
saga::video::SRenderPass::AttachmentCount
int AttachmentCount
Definition: SRenderPass.h:22
saga::video::SRenderPass::State
SRenderPassState State
Definition: SRenderPass.h:17
saga::video::SRenderPass::Viewport
glm::vec4 Viewport
Definition: SRenderPass.h:24
saga::video::SGPUResource
Definition: SGPUResource.h:11
SGPUResource.h
saga::video::SRenderPass::Scissor
glm::ivec4 Scissor
Definition: SRenderPass.h:23
saga::video::SRenderPass::UseDefaultAttachments
bool UseDefaultAttachments
Definition: SRenderPass.h:18
saga::video::SRenderPass::ScissorTest
bool ScissorTest
Definition: SRenderPass.h:21
saga::video::SGPUResource::HandleType
std::uint32_t HandleType
Definition: SGPUResource.h:13
saga::video::SRenderPassState
Definition: SRenderPassState.h:37
STexture.h
saga::video::RenderPassHandle
SGPUResource::HandleType RenderPassHandle
Definition: SRenderPass.h:27
saga::video::SRenderPass
Definition: SRenderPass.h:13
saga::video::SRenderPass::DrawGeometry
bool DrawGeometry
Definition: SRenderPass.h:20
SRenderPassState.h
saga
Definition: aabbox3d.h:11