Package icyllis.arc3d.opengl
Class GLBackendFormat
java.lang.Object
icyllis.arc3d.engine.BackendFormat
icyllis.arc3d.opengl.GLBackendFormat
-
Method Summary
Modifier and TypeMethodDescriptionbooleanintintintGets the channels present in the format as a bitfield of ColorChannelFlag values.intintintintIf the backend API is OpenGL this gets the format as a GLenum.intinthashCode()booleanisSRGB()static @NonNull GLBackendFormatmake(int format) toString()Methods inherited from class icyllis.arc3d.engine.BackendFormat
getVkFormat, isCompressed, isExternal
-
Method Details
-
make
-
getBackend
public int getBackend()- Specified by:
getBackendin classBackendFormat- See Also:
-
getGLFormat
public int getGLFormat()Description copied from class:BackendFormatIf the backend API is OpenGL this gets the format as a GLenum.- Overrides:
getGLFormatin classBackendFormat
-
getChannelFlags
public int getChannelFlags()Description copied from class:BackendFormatGets the channels present in the format as a bitfield of ColorChannelFlag values.- Specified by:
getChannelFlagsin classBackendFormat- See Also:
-
isSRGB
public boolean isSRGB()- Specified by:
isSRGBin classBackendFormat
-
getCompressionType
public int getCompressionType()- Specified by:
getCompressionTypein classBackendFormat- See Also:
-
getBytesPerBlock
public int getBytesPerBlock()- Specified by:
getBytesPerBlockin classBackendFormat- Returns:
- if compressed, bytes per block, otherwise bytes per pixel
-
getDepthBits
public int getDepthBits()- Specified by:
getDepthBitsin classBackendFormat
-
getStencilBits
public int getStencilBits()- Specified by:
getStencilBitsin classBackendFormat
-
getFormatKey
public int getFormatKey()- Specified by:
getFormatKeyin classBackendFormat- Returns:
- a key that is unique in the backend
-
hashCode
public int hashCode() -
equals
-
toString
-