Package icyllis.arc3d.opengl
Class GLBackendImage
java.lang.Object
icyllis.arc3d.engine.BackendImage
icyllis.arc3d.opengl.GLBackendImage
When importing external memory,
memoryHandle
is POSIX file descriptor or Win32 NT handle. memoryObject
is
OpenGL memory object. If it is an NT handle, it must be released manually by the memory exporter
(e.g. Vulkan).-
Field Summary
Modifier and TypeFieldDescriptionint
GLuint
- image nameint
GLsizei
- number of mip levelslong
union { int fd; // file descriptor HANDLE handle; // win32 handle };
int
GLuint
- memoryFields inherited from class icyllis.arc3d.engine.BackendImage
mDesc, mMutableState
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Get the BackendFormat for this image/texture.void
Call this to indicate that the texture parameters have been modified in the GL context externally to Context.boolean
boolean
Returns true if we are working with protected content.boolean
isSameImage
(BackendImage image) Returns true if both images are valid and refer to the same API image handle.toString()
Methods inherited from class icyllis.arc3d.engine.BackendImage
getArraySize, getDepth, getDesc, getHeight, getImageType, getMipLevelCount, getMutableState, getWidth, isMipmapped, setVkImageLayout, setVkQueueFamilyIndex
-
Field Details
-
handle
public int handleGLuint
- image name -
levels
public int levelsGLsizei
- number of mip levels -
memoryObject
public int memoryObjectGLuint
- memory -
memoryHandle
public long memoryHandleunion { int fd; // file descriptor HANDLE handle; // win32 handle };
-
-
Constructor Details
-
GLBackendImage
-
-
Method Details
-
getBackend
public int getBackend()- Specified by:
getBackend
in classBackendImage
- Returns:
- see
Engine.BackendApi
-
isExternal
public boolean isExternal()- Specified by:
isExternal
in classBackendImage
- Returns:
- external texture
-
getGLImageInfo
-
glTextureParametersModified
public void glTextureParametersModified()Description copied from class:BackendImage
Call this to indicate that the texture parameters have been modified in the GL context externally to Context.Tells client that these parameters of the texture are changed out of client control (for example, you called glTexParameteri without using
GLDevice
). The local states will be forced to reset to a known state when next use.- Overrides:
glTextureParametersModified
in classBackendImage
-
getBackendFormat
Description copied from class:BackendImage
Get the BackendFormat for this image/texture.- Specified by:
getBackendFormat
in classBackendImage
-
isProtected
public boolean isProtected()Description copied from class:BackendImage
Returns true if we are working with protected content.- Specified by:
isProtected
in classBackendImage
-
isSameImage
Description copied from class:BackendImage
Returns true if both images are valid and refer to the same API image handle.- Specified by:
isSameImage
in classBackendImage
-
toString
-