Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


BufferID(ulong)

Create a new BufferID.
Read time 1 minuteLast updated 6 days ago

Definition

public BufferID(ulong value)

Parameters

value

The value to construct the BufferID.

Remarks

Creates a BufferID from a raw value. This constructor can be used to create BufferIDs from handles or pointers.
The value is implementation-specific and can represent:
  • Memory pointers in CPU implementations.
  • GPU buffer handles in GPU implementations.
  • Indices into internal buffer tables or other implementation-defined identifiers.
Note: This is an advanced feature that permits unsafe code for advanced use cases. BufferIDs should typically be obtained through IDeviceContext.CreateBuffer rather than constructing them manually.