Version: Unity 6.0 (6000.0)
LanguageEnglish
  • C#

BufferID Constructor

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Declaration

public BufferID(ulong value);

Parameters

Parameter Description
value The value to construct the BufferID.

Description

Create a new BufferID.

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.