Class Info |
|---|
class RenderingPath 渲染路径类,与渲染目标使用光照的流程相关。 |
Constructor Name |
|---|
RenderingPath(Camera* camera, RenderContext* renderContext, RenderingPathType renderingPathType) 构造函数。 |
Qualifier and Type | Method Name and Description |
|---|---|
virtual void | 渲染路径类相关资源的初始化。 |
virtual void | 渲染路径类的资源卸载。 |
virtual void | Resume() 应用程序从后台切到前台时,完成渲染路径相关资源的重建。 |
virtual void | Pause() 应用程序从前台切到后台时,完成渲染路径相关资源的销毁。 |
virtual void | 根据间隔时间进行更新操作。 |
virtual void | Render() 渲染函数。 |
virtual void | 输入宽高,重设一些跟渲染路径相关数据的尺寸。 |
virtual const std::vector<Texture*>& | GetGBuffer() const = 0 纯虚函数,获得所有纹理缓存数据。 |
virtual const Texture* | GetGBuffer(u32 index) const = 0 纯虚函数,获得某一渲染阶段(RenderStage)的纹理缓存。 |
virtual const Texture* | GetDepthStencilTexture() const = 0 纯虚函数,获得存储成深度模板的纹理。 |
virtual RenderingPathType | GetRenderingPathType() const 获得渲染路径类型。 |
virtual RenderTargetType | GetRenderTargetType() const 获得渲染目标类型。 |
virtual const Texture* | GetOutputTexture(PostProcessStage* stage = nullptr) const 获取后处理阶段输出的渲染纹理。 |
Constructor |
|---|
RenderingPath(Camera* camera, RenderContext* renderContext, RenderingPathType renderingPathType) 构造函数。 |
Parameters
Name | Description |
|---|---|
camera | 渲染路径对应的相机。 |
renderContext | 渲染路径对应的渲染上下文。 |
renderingPathType | 渲染路径类型。 |
Method |
|---|
virtual void Update(f32 deltaTime) 根据间隔时间进行更新操作。 |
Parameters
Name | Description |
|---|---|
deltaTime | 间隔时间。 |
Method |
|---|
virtual const std::vector<Texture*>& GetGBuffer() const = 0 纯虚函数,获得所有纹理缓存数据。 |
Returns
Type | Description |
|---|---|
const std::vector<Texture*>& | 所有渲染纹理指针变量的集合。 |
Method |
|---|
virtual const Texture* GetGBuffer(u32 index) const = 0 纯虚函数,获得某一渲染阶段(RenderStage)的纹理缓存。 |
Returns
Type | Description |
|---|---|
const Texture* | 指定索引对应的渲染纹理。 |
Method |
|---|
virtual const Texture* GetDepthStencilTexture() const = 0 纯虚函数,获得存储成深度模板的纹理。 |
Returns
Type | Description |
|---|---|
const Texture* | 保存成深度模板的纹理。 |
Method |
|---|
virtual RenderingPathType GetRenderingPathType() const 获得渲染路径类型。 |
Returns
Type | Description |
|---|---|
渲染路径类型。 |
Method |
|---|
virtual RenderTargetType GetRenderTargetType() const 获得渲染目标类型。 |
Returns
Type | Description |
|---|---|
渲染目标类型。 |
Method |
|---|
virtual const Texture* GetOutputTexture(PostProcessStage* stage = nullptr) const 输入后处理渲染对象,获取后处理阶段输出的渲染纹理。 |
Parameters
Name | Description |
|---|---|
stage | 后处理渲染对象。 |
Returns
Type | Description |
|---|---|
const Texture* | 渲染纹理指针。 |