[]
Creates a layer resource that can be used with this render target and its compatible render targets. The new layer has the specified initial size. The layer resource is allocated to the minimum size when {{PushLayer}} is called.
public static Layer Create(RenderTarget renderTarget)
Type | Name | Description |
---|---|---|
RenderTarget | renderTarget | an instance of RenderTarget |
Type | Description |
---|---|
Layer |
Regardless of whether a size is initially specified, the layer automatically resizes as needed.
Creates a layer resource that can be used with this render target and its compatible render targets. The new layer has the specified initial size.
public static Layer Create(RenderTarget renderTarget, Size2F? size)
Type | Name | Description |
---|---|---|
RenderTarget | renderTarget | an instance of RenderTarget |
Size2F? | size | If (0, 0) is specified, no backing store is created behind the layer resource. The layer resource is allocated to the minimum size when {{PushLayer}} is called. |
Type | Description |
---|---|
Layer |
Regardless of whether a size is initially specified, the layer automatically resizes as needed.