#pragma once #include #include #include "Macros.h" #include "Types.h" CC_BACKEND_BEGIN class Texture; struct RenderPassDescriptor { float clearDepthValue = 0.f; float clearStencilValue = 0.f; std::array clearColorValue {{0.f, 0.f, 0.f, 0.f}}; // double-braces required in C++11 bool needColorAttachment = true; bool needDepthAttachment = false; bool needStencilAttachment = false; bool needClearColor = false; bool needClearDepth = false; bool needClearStencil = false; Texture* depthAttachmentTexture = nullptr; Texture* stencilAttachmentTexture = nullptr; Texture* colorAttachmentsTexture[MAX_COLOR_ATTCHMENT] = { nullptr }; }; CC_BACKEND_END