Skip to content

Api > Texture2D > GetNativeTexturePtr()


Texture2D.GetNativeTexturePtr()⚓︎

Retrieve a native (underlying graphics API) pointer to the Texture resource.

Returns:⚓︎

type Description
IntPtr Pointer to an underlying graphics API Texture resource.

Usage⚓︎

---@type Texture2D
local texture2d;


local val0 = texture2d.GetNativeTexturePtr()