private static extern void Internal_SetValue(IntPtr nativeInstance, Texture value);
private static extern void Internal_setTexture(IntPtr thisPtr, Texture texture);
private static extern void Internal_create1(RenderTexture managedInstance, Texture colorSurface, Texture depthStencilSurface);
private static extern void Internal_create0(RenderTexture managedInstance, Texture colorSurface);
/// <summary>Creates a new 2D render texture using one or multiple color textures and a depth/stencil texture.</summary> /// <param name="colorSurface">Color texture(s) to render color data to.</param> /// <param name="depthStencilSurface">Optional depth/stencil texture to render depth/stencil data to.</param> public RenderTexture(Texture[] colorSurface, Texture depthStencilSurface) { Internal_create3(this, colorSurface, depthStencilSurface); }
/// <summary>Creates a new 2D render texture using an existing color texture, and no depth-stencil texture.</summary> /// <param name="colorSurface">Color texture to render color data to.</param> public RenderTexture(Texture colorSurface) { Internal_create0(this, colorSurface); }