class
render::RenderTarget
Provides access to internal render target implementation usable only from the render thread.
Public
Constructors
RenderTarget
Methods
~RenderTarget
SetPriority
Sets a priority that determines in which orders the render targets the processed.
- priority
- The priority. Higher value means the target will be rendered sooner.
GetProperties
Returns properties that describe the render target.
GetUpdateCount
Returns a number that increments each time the target is rendered to.
External systems can use this to determine when the target's contents changed.
Internal
Methods
TickUpdateCountInternal
Increments the update count, letting other code know that the contents of the render target changed.
ReadAsync
Reads the contents of this render target.
Issues a copy command into the command buffer and returns an async operation that triggers when the data has been read.
- commandBuffer
- Command buffer to issue copy commands into.
- colorSurfaceIndex
- Which color surface to read (default 0).
- mipLevel
- Mip level to read (default 0).
- arrayLayer
- Array layer to read (default 0).
Returns: Async operation that triggers when the read operation is complete. May retun null PixelData if reading is not supported.