Package icyllis.arc3d.engine
Class BackendFormat
java.lang.Object
icyllis.arc3d.engine.BackendFormat
- Direct Known Subclasses:
GLBackendFormat
,MockBackendFormat
,VkBackendFormat
Deprecated.
Describes the backend texture format, immutable.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract int
Deprecated.abstract int
Deprecated.abstract int
Deprecated.Gets the channels present in the format as a bitfield of ColorChannelFlag values.abstract int
Deprecated.abstract int
Deprecated.abstract int
Deprecated.int
Deprecated.If the backend API is OpenGL this gets the format as a GLenum.abstract int
Deprecated.int
Deprecated.If the backend API is Vulkan this gets the format as a VkFormat.final boolean
Deprecated.final boolean
Deprecated.Hints that a texture comes from external resources, and our engine cannot create such a texture with this format.abstract boolean
isSRGB()
Deprecated.
-
Constructor Details
-
BackendFormat
public BackendFormat()Deprecated.
-
-
Method Details
-
getBackend
public abstract int getBackend()Deprecated.- See Also:
-
getGLFormat
public int getGLFormat()Deprecated.If the backend API is OpenGL this gets the format as a GLenum. -
getVkFormat
public int getVkFormat()Deprecated.If the backend API is Vulkan this gets the format as a VkFormat. -
getChannelFlags
public abstract int getChannelFlags()Deprecated.Gets the channels present in the format as a bitfield of ColorChannelFlag values.- See Also:
-
isSRGB
public abstract boolean isSRGB()Deprecated. -
isExternal
public final boolean isExternal()Deprecated.Hints that a texture comes from external resources, and our engine cannot create such a texture with this format. It will be read-only (can be read/sampled from but cannot be written/rendered to).This is reserved for future use and currently always returns false.
-
getCompressionType
public abstract int getCompressionType()Deprecated.- See Also:
-
isCompressed
public final boolean isCompressed()Deprecated. -
getBytesPerBlock
public abstract int getBytesPerBlock()Deprecated.- Returns:
- if compressed, bytes per block, otherwise bytes per pixel
-
getDepthBits
public abstract int getDepthBits()Deprecated. -
getStencilBits
public abstract int getStencilBits()Deprecated. -
getFormatKey
public abstract int getFormatKey()Deprecated.- Returns:
- a key that is unique in the backend
-