Rev. 1.01
11
6
OpenGL® Extension Specification
This OpenGL extension accelerates the data transfer between GPU and SSD devices. It introduces a new
file object that operates on the file in an SSD. The result of a file operation (read or write) can be any
named buffer object. GL file objects employ the same semantics as when the file is opened for
reading/writing—that is, the file must have read/write privileges.
6.1
glCreateFileAMD
The
glCreateFileAMD
function creates a GL file object. Doing so over a file employs the same semantics
as when the file is opened for reading/writing—that is, the file must have read/write privileges.
name
[in]
Name of the file to open or create. The file name supports only UTF-8; wide-character Unicode strings are
currently unsupported.
mode
[in]
Mode in which the file is to be created:
GL_READ_ONLY, GL_WRITE_ONLY
or
GL_READ_WRITE
.
Return Value
Description
NULL
The function is unable to create/open the file.
6.2
glReleaseFileAMD
The
glReleaseFileAMD
function detaches the native handle from a GL file and closes the GL file object.
file
[in]
The GL file to be released and closed.
Error
Description
INVALID_OPERATION
The file object is invalid.
6.3
glGetFileParameteri64vAMD
The
glGetFileParameteri64vAMD
function returns the properties of the GL file.
C++
GLfilehandleAMD glCreateFileAMD(GLchar* name, GLenum mode);
C++
GLvoid glReleaseFileAMD(GLfilehandleAMD file);