#pragma once #include "Macros.h" #include "Types.h" #include "VertexLayout.h" #include "renderer/backend/ProgramState.h" #include CC_BACKEND_BEGIN class DepthStencilState; class BlendState; struct RenderPipelineDescriptor { ProgramState* programState = nullptr; DepthStencilState* depthStencilState = nullptr; BlendState* blendState = nullptr; std::vector vertexLayouts; TextureFormat colorAttachmentsFormat[MAX_COLOR_ATTCHMENT] = { TextureFormat::SYSTEM_DEFAULT }; TextureFormat depthAttachmentFormat = TextureFormat::NONE; TextureFormat stencilAttachmentFormat = TextureFormat::NONE; }; CC_BACKEND_END