Creates a new render target 2D implementation. All render targets are themselves textures.
Declaration Syntax
C# |
Texture2DImplementation CreateRenderTarget2DImplementation( int width, int height, bool genMipMaps, SurfaceFormat format, DepthFormat depthFormat, int multiSampleCount, RenderTargetUsage usage )
Parameters
- width (Int32)
- Width of the target
- height (Int32)
- Height of the target
- genMipMaps (Boolean)
- True if mipmaps should be generated
- format (SurfaceFormat)
- Surface format
- depthFormat (DepthFormat)
- Depth format. For Multi-RenderTarget (MRT) usage, the depth buffer from the first render target set on the device will be used for all proceeding targets assigned.
- multiSampleCount (Int32)
- Multisample count
- usage (RenderTargetUsage)
- Render target usage
Return Value
Render target 2D implementation
Assembly: Tesla (Module: Tesla) Version: 0.5.0.0 (0.5.0.0)