Method AllocateTexture
AllocateTexture(CommandBuffer, ref Vector4, Texture, int, int, int)
Allocate space from the atlas for a texture and copy texture contents into the atlas.
Declaration
public override bool AllocateTexture(CommandBuffer cmd, ref Vector4 scaleOffset, Texture texture, int width, int height, int overrideInstanceID = -1)
Parameters
Type | Name | Description |
---|---|---|
CommandBuffer | cmd | Target command buffer for graphics commands. |
Vector4 | scaleOffset | Allocated scale (.xy) and offset (.zw) |
Texture | texture | Source Texture |
int | width | Request width in pixels. |
int | height | Request height in pixels. |
int | overrideInstanceID | Override texture instance ID. |
Returns
Type | Description |
---|---|
bool | True on success, false otherwise. |