glClearBufferSubData

fill all or part of buffer object's data store with a fixed value

Signature

glClearBufferSubData( GLenum ( target ) , GLenum ( internalformat ) , GLintptr ( offset ) , GLsizeiptr ( size ) , GLenum ( format ) , GLenum ( type ) , const void * ( data ) )-> void
glClearBufferSubData( target , internalformat , offset , size , format , type , data )

Parameters

VariablesDescription
target
Specify the target of the operation. target must be one of the global buffer binding targets.
internalformat
The internal format with which the data will be stored in the buffer object.
offset
The offset, in basic machine units into the buffer object's data store at which to start filling.
size
The size, in basic machine units of the range of the data store to fill.
format
The format of the data in memory addressed by data .
type
The type of the data in memory addressed by data .
data
The address of a memory location storing the data to be replicated into the buffer's data store.