Create(RenderTarget,Nullable<Size2F>) Method
In This Topic
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.
Syntax
'Declaration
Public Overloads Shared Function Create( _
ByVal As RenderTarget, _
ByVal As System.Nullable(Of Size2F) _
) As Layer
public static Layer Create(
RenderTarget ,
System.Nullable<Size2F>
)
Parameters
- renderTarget
- an instance of RenderTarget
- 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.
See Also