Skip to content

API Reference / @gtkx/gl / clearNamedBufferData

Function: clearNamedBufferData() ​

clearNamedBufferData(buffer, internalformat, format, type, data): void

Defined in: packages/gl/src/generated/commands.ts:889

void glClearNamedBufferData(GLuint buffer, GLenum internalformat, GLenum format, GLenum type, const void *data)

Provided by GL_VERSION_4_5. Registry note: Reuse GL_ARB_direct_state_access Also provided by the GL_ARB_direct_state_access extension. GL_ARB_direct_state_access note: Buffer object functions.

Parameters ​

buffer ​

number

GLuint, object class buffer

internalformat ​

number

SizedInternalFormat

format ​

number

PixelFormat

type ​

number

PixelType

data ​

GLpointer | ArrayBufferView<ArrayBufferLike> | null

ArrayBufferView | GLpointer | null, length COMPSIZE(format,type)

Returns ​

void