Glreadfileamd - Radeon Pro Solid State Graphics Api User Manual

Table of Contents

Advertisement

C++
GLvoid glGetFileParameteri64vAMD(GLfilehandleAMD file,
file [in]
The GL file for which properties are required.
pname [in]
The property information being requested. It must be GL_FILE_BLOCK_SIZE_AMD or GL_FILE_SIZE_AMD.
params [out]
The value of the property requested.
Error
INVALID_VALUE
INVALID_ENUM

6.4 glReadFileAMD

The glReadFileAMD function reads from the specified file into the destination buffer. It can be
synchronous or asynchronous. Combining a number of read operations asynchronously yields better
performance.
C++
GLvoid glReadFileAMD(GLuint
dstBuffer [in]
A valid named buffer object that will hold the read result. 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 from which information is being read.
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.
fileOffset [in]
Location in the file from which data (of width size, in bytes) will be read into the buffer. It must be a
multiple of GL_FILE_BLOCK_SIZE_AMD.
GLenum
GLuint64*
Description
The file object is invalid.
The requested property is not GL_FILE_BLOCK_SIZE_AMD.
dstBuffer,
GLfilehandleAMD file,
GLuint64
bufferOffset,
GLuint64
fileOffset,
GLuint64
size,
GLsync*
sync);
12
pname,
params);
Rev. 1.01

Advertisement

Table of Contents
loading

Table of Contents