Method BlitTexture
BlitTexture(CommandBuffer, Vector4, Texture, Vector4, bool, int)
Blit 2D texture into the atlas.
Declaration
public virtual void BlitTexture(CommandBuffer cmd, Vector4 scaleOffset, Texture texture, Vector4 sourceScaleOffset, bool blitMips = true, int overrideInstanceID = -1)
Parameters
Type | Name | Description |
---|---|---|
CommandBuffer | cmd | Target command buffer for graphics commands. |
Vector4 | scaleOffset | Destination scale (.xy) and offset (.zw) |
Texture | texture | Source Texture |
Vector4 | sourceScaleOffset | Source scale (.xy) and offset(.zw). |
bool | blitMips | Blit mip maps. |
int | overrideInstanceID | Override texture instance ID. |