Skip to main content

Texture2D.LoadRawTextureData(IntPtr data, number size)

Sets the raw data of an entire texture in CPU memory.

Parameters:

NameTypeDescription
dataIntPtrIn hardware reference of data to load.
sizenumberThe size of the data in bytes.

Usage

---@type Texture2D
local texture2d;

---@type IntPtr
local data;

---@type number
local size;


texture2d.LoadRawTextureData(data, size)