axmol/cocos/renderer/backend/RenderPipelineDescriptor.h

27 lines
692 B
C++

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