Click or drag to resize

VisualServerTextureAllocate Method

Allocates the GPU memory for the texture.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public static void TextureAllocate(
	RID texture,
	int width,
	int height,
	int depth3d,
	ImageFormat format,
	VisualServerTextureType type,
	uint flags = 7
)

Parameters

texture
Type: GodotRID

[Missing <param name="texture"/> documentation for "M:Godot.VisualServer.TextureAllocate(Godot.RID,System.Int32,System.Int32,System.Int32,Godot.Image.Format,Godot.VisualServer.TextureType,System.UInt32)"]

width
Type: SystemInt32

[Missing <param name="width"/> documentation for "M:Godot.VisualServer.TextureAllocate(Godot.RID,System.Int32,System.Int32,System.Int32,Godot.Image.Format,Godot.VisualServer.TextureType,System.UInt32)"]

height
Type: SystemInt32

[Missing <param name="height"/> documentation for "M:Godot.VisualServer.TextureAllocate(Godot.RID,System.Int32,System.Int32,System.Int32,Godot.Image.Format,Godot.VisualServer.TextureType,System.UInt32)"]

depth3d
Type: SystemInt32

[Missing <param name="depth3d"/> documentation for "M:Godot.VisualServer.TextureAllocate(Godot.RID,System.Int32,System.Int32,System.Int32,Godot.Image.Format,Godot.VisualServer.TextureType,System.UInt32)"]

format
Type: GodotImageFormat

[Missing <param name="format"/> documentation for "M:Godot.VisualServer.TextureAllocate(Godot.RID,System.Int32,System.Int32,System.Int32,Godot.Image.Format,Godot.VisualServer.TextureType,System.UInt32)"]

type
Type: GodotVisualServerTextureType

[Missing <param name="type"/> documentation for "M:Godot.VisualServer.TextureAllocate(Godot.RID,System.Int32,System.Int32,System.Int32,Godot.Image.Format,Godot.VisualServer.TextureType,System.UInt32)"]

flags (Optional)
Type: SystemUInt32

[Missing <param name="flags"/> documentation for "M:Godot.VisualServer.TextureAllocate(Godot.RID,System.Int32,System.Int32,System.Int32,Godot.Image.Format,Godot.VisualServer.TextureType,System.UInt32)"]

See Also