![Radeon Pro Solid State Graphics Скачать руководство пользователя страница 13](http://html.mh-extra.com/html/radeon/pro-solid-state-graphics/pro-solid-state-graphics_api-user-manual_776864013.webp)
Rev. 1.01
13
size
[in]
The amount of information (in bytes) being read.
It must be a multiple of
GL_FILE_BLOCK_SIZE_AMD
.
If
the file size is not a multiple of the block size, read the end of the file by aligning the read size with the
next block multiple beyond the file size.
sync
[in]
Sync the object for non-blocking operation. If
sync
is NULL, read operations will execute in blocking mode
and the function call will return only after the operation is complete. Otherwise, the function will use non-
blocking mode and will return immediately; a valid GL sync object will also be returned in this case, to be
used in a
WaitSync
call to synchronize file operations.
Non-blocking mode is only valid when the buffer is
created with the
MAP_PERSISTENT_BIT
flag but without
CLIENT_STORAGE_BIT.
Error
Description
INVALID_VALUE
The file object is invalid.
INVALID_VALUE
Invalid buffer-object name.
INVALID_VALUE
The sum of
bufferOffset
and
size
exceeds the size of the target buffer.
INVALID_VALUE
The
fileOffset, size
and
bufferOffset
values are not multiples of
GL_FILE_BLOCK_SIZE_AMD.
INVALID_OPERATION
Failure to access the file with the specified
fileOffset
and
size
values.
INVALID_OPERATION
The
sync
argument isn’t NULL and the buffer object wasn’t created
with the
MAP_PERSISTENT_BIT
flag but without
CLIENT_STORAGE_BIT.
6.5
glWriteFileAMD
The
glWriteFileAMD
function writes multiple target regions to the file. The write source is a named
buffer with specified offsets.
srcBuffer
[in]
A valid named buffer object containing the information desired to be written to a file.
The best
performance is obtained by creating the buffer with the
MAP_PERSISTENT_BIT
flag but without
CLIENT_STORAGE_BIT.
file
[in]
The GL file to which the information is written.
bufferOffset
[in]
Location in the buffer from which data (of width
size,
in bytes) will be read.
It must be a multiple of
GL_FILE_BLOCK_SIZE_AMD.
C++
GLvoid glWriteFileAMD(GLuint
srcBuffer,
GLfilehandleAMD file,
GLuint64 bufferOffset,
GLuint64 fileOffset,
GLuint64 size,
GLsync* sync);
Содержание Pro Solid State Graphics
Страница 1: ...Solid State Graphics SSG API User Manual ...