This page has been translated automatically.
视频教程
界面
要领
高级
实用建议
UnigineEditor
界面概述
资产工作流程
设置和首选项
项目开发
调整节点参数
Setting Up Materials
Setting Up Properties
照明
Landscape Tool
Sandworm (Experimental)
使用编辑器工具执行特定任务
Extending Editor Functionality
嵌入式节点类型
Nodes
Objects
Effects
Decals
Light Sources
Geodetics
World Objects
Sound Objects
Pathfinding Objects
Players
编程
基本原理
搭建开发环境
Usage Examples
UnigineScript
C++
C#
UUSL (Unified UNIGINE Shader Language)
File Formats
Rebuilding the Engine Tools
GUI
双精度坐标
应用程序接口
Containers
Common Functionality
Controls-Related Classes
Engine-Related Classes
Filesystem Functionality
GUI-Related Classes
Math Functionality
Node-Related Classes
Objects-Related Classes
Networking Functionality
Pathfinding-Related Classes
Physics-Related Classes
Plugins-Related Classes
IG Plugin
CIGIConnector Plugin
注意! 这个版本的文档是过时的,因为它描述了一个较老的SDK版本!请切换到最新SDK版本的文档。
注意! 这个版本的文档描述了一个不再受支持的旧SDK版本!请升级到最新的SDK版本。

Unigine.RenderTarget Class

A container to which an image is rendered (a framebuffer abstraction).

RenderTarget Class

Properties

bool IsCompleted#

A value indicating if the render target is completed.

bool IsEnabled#

A value indicating if the render target is enabled.

Members


RenderTarget Create ( ) #

Creates a new render target.

Return value

Render target.

void Destroy ( ) #

Destroys the render target.

void Enable ( ) #

Enables the render target.

void EnableCompute ( ) #

Enables the render target with the use of compute shader output.

void Disable ( ) #

Disables the render target.

void Flush ( ) #

Flushes the render target.

Texture GetColorTexture ( int slot ) #

Returns a color texture by the specified slot.

Arguments

  • int slot - Texture slot.

Return value

Color texture if it exists, otherwise NULL.

void BindColorTexture ( int slot, Texture texture, int array_slice = -1, int texture_slice = -1, int mip_level = 0 ) #

Binds a render target texture to a device by the specified slot.

Arguments

  • int slot - Texture slot.
  • Texture texture - Color texture to be bound.
  • int array_slice - Array slice.
  • int texture_slice - Texture slice.
  • int mip_level - Texture mip level.

void UnbindColorTexture ( int slot ) #

Unbinds a render target texture from a device by the specified slot.

Arguments

  • int slot - Texture slot.

void UnbindColorTextures ( ) #

Unbinds all render target textures from a device.

Texture GetDepthTexture ( ) #

Returns the depth texture.

Return value

Depth texture if it exists, otherwise NULL.

void BindDepthTexture ( Texture texture, int array_slice = -1, int texture_slice = -1, int mip_level = 0 ) #

Binds a depth texture to a device by the specified slot.

Arguments

  • Texture texture - Depth texture to be bound.
  • int array_slice - Array slice.
  • int texture_slice - Texture slice.
  • int mip_level - Texture mip level.

void UnbindDepthTexture ( ) #

Unbinds a depth texture from a device.

Texture GetUnorderedAccessTexture ( int slot ) #

Returns an unordered access texture by the specified slot.

Arguments

  • int slot - Texture slot.

Return value

Unordered access texture if it exists, otherwise NULL.

void BindUnorderedAccessTexture ( int slot, Texture texture, int writeonly = 0 ) #

Binds an unordered access texture to a device by the specified slot.

Arguments

  • int slot - Texture slot.
  • Texture texture - Unordered access texture to be bound.
  • int writeonly - Access flag. 1 to use the texture for writing only, otherwise 0.

void UnbindUnorderedAccessTexture ( int slot ) #

Unbinds an unordered access texture from a device by the specified slot.

Arguments

  • int slot - Texture slot.

void UnbindUnorderedAccessTextures ( ) #

Unbinds all unordered access textures from a device.

StructuredBuffer GetStructuredBuffer ( int slot ) #

Returns a structured buffer by the specified slot.

Arguments

  • int slot - Texture slot.

Return value

Structured buffer if it exists, otherwise NULL.

void BindStructuredBuffer ( int slot, StructuredBuffer buffer ) #

Binds a structured buffer to a device by the specified slot.

Arguments

void UnbindStructuredBuffer ( int slot ) #

Unbinds a structured buffer from a device by the specified slot.

Arguments

  • int slot - Texture slot.

void UnbindStructuredBuffers ( ) #

Unbinds all structured buffers from a device.

void UnbindAll ( ) #

Unbinds all color, depth, and unordered access textures as well as structured buffers from a device.
Last update: 2020-11-24
Build: ()