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
FieldsModifier and TypeFieldDescriptionintGLuint- image nameintGLsizei- number of mip levelslongunion { int fd; // file descriptor HANDLE handle; // win32 handle };intGLuint- memoryFields inherited from class icyllis.arc3d.engine.BackendImage
mDesc, mMutableState -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint@NonNull BackendFormatGet the BackendFormat for this image/texture.voidCall this to indicate that the texture parameters have been modified in the GL context externally to Context.booleanbooleanReturns true if we are working with protected content.booleanisSameImage(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:
getBackendin classBackendImage- Returns:
- see
Engine.BackendApi
-
isExternal
public boolean isExternal()- Specified by:
isExternalin classBackendImage- Returns:
- external texture
-
getGLImageInfo
-
glTextureParametersModified
public void glTextureParametersModified()Description copied from class:BackendImageCall 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:
glTextureParametersModifiedin classBackendImage
-
getBackendFormat
Description copied from class:BackendImageGet the BackendFormat for this image/texture.- Specified by:
getBackendFormatin classBackendImage
-
isProtected
public boolean isProtected()Description copied from class:BackendImageReturns true if we are working with protected content.- Specified by:
isProtectedin classBackendImage
-
isSameImage
Description copied from class:BackendImageReturns true if both images are valid and refer to the same API image handle.- Specified by:
isSameImagein classBackendImage
-
toString
-