# VoxelBuffer

Roblox Engine API class from Roblox Studio 0.744.0.7441077 (version-7aaa6838d36c4448).

- Inherits from, nearest first: [Object](https://rapi.sleaze.dev/classes/Object.md)
- Tags: Not creatable, Not replicated
- Memory category: Instances
- HTML page: https://rapi.sleaze.dev/classes/VoxelBuffer/
- Roblox documentation: https://create.roblox.com/docs/reference/engine/classes/VoxelBuffer

## Methods

### ClearAsync

```luau
VoxelBuffer:ClearAsync(sizeInVoxels: Vector3?)
```

- Tags: Yields, Roblox script security

### DrawBufferAsync

```luau
VoxelBuffer:DrawBufferAsync(cframe: CFrame, scale: number, source: VoxelBuffer, mergeConfig: { [string]: any })
```

- Tags: Yields, Roblox script security

### FromHeightmapAsync

```luau
VoxelBuffer:FromHeightmapAsync(heightMap: buffer, width: number, height: number, heightMapRect: Rect, offset: number, scale: number, material: number)
```

- Tags: Yields, Roblox script security

### GetSizeInVoxels

```luau
VoxelBuffer:GetSizeInVoxels(): Vector3
```

- Tags: Roblox script security

### NormalizeAsync

```luau
VoxelBuffer:NormalizeAsync()
```

- Tags: Yields, Roblox script security

### ReadVoxels

```luau
VoxelBuffer:ReadVoxels(channelIds: { any }): { [string]: any }
```

- Tags: Custom Lua state, Roblox script security

### UnclampAsync

```luau
VoxelBuffer:UnclampAsync()
```

- Tags: Yields, Roblox script security

### WriteVoxels

```luau
VoxelBuffer:WriteVoxels(channels: { [string]: any })
```

- Tags: Custom Lua state, Roblox script security

## Inherited members

- From [Object](https://rapi.sleaze.dev/classes/Object.md): `ClassName`, `className`, `GetPropertyChangedSignal`, `IsA`, `isA`, `Changed`
