axmol/cocos/renderer/backend/RenderPipelineDescriptor.h

27 lines
661 B
C++

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