智能客服
你问我答,随时在线为你解决问题
Class Info |
|---|
class RenderTarget 渲染目标类,渲染目标就是一个缓冲区,用来记录渲染后输出的结果,不是直接将帧缓冲绘制到屏幕。 |
Constructor Name |
|---|
RenderTarget(const RenderTargetCreateInfo& renderTargetCreateInfo) 构造函数。 |
Destructor Name |
|---|
| 析构函数。 |
Qualifier and Type | Method Name and Description |
|---|---|
bool | Create(const std::vector<Texture*>& colorTextures, const Texture* depthStencil, const RenderPass* renderPass, const GraphicsRenderer* graphicsRenderer) 输入颜色纹理、深度模板、渲染通道、场景渲染句柄变量来创建渲染目标,返回是否创建成功布尔值。 |
void | 输入宽高调整渲染目标尺寸。 |
Constructor |
|---|
RenderTarget(const RenderTargetCreateInfo& renderTargetCreateInfo) 构造函数。 |
Parameters
Name | Description |
|---|---|
renderTargetCreateInfo | 创建渲染目标的数据。 |
Destructor |
|---|
~RenderTarget() 析构函数。 |
Method |
|---|
bool Create(const std::vector<Texture*>& colorTextures, const Texture* depthStencil, const RenderPass* renderPass, const GraphicsRenderer* graphicsRenderer) 输入颜色纹理、深度模板、渲染通道、场景渲染句柄变量来创建渲染目标,返回是否创建成功布尔值。 |
Parameters
Name | Description |
|---|---|
colorTextures | 颜色纹理容器。 |
depthStencil | 深度模板。 |
renderPass | 渲染通道。 |
graphicsRenderer | 场景渲染句柄。 |
Returns
Type | Description |
|---|---|
bool | 返回布尔值判断创建是否成功。 |