Package icyllis.arc3d.vulkan
Class VkBackendFormat
java.lang.Object
icyllis.arc3d.engine.BackendFormat
icyllis.arc3d.vulkan.VkBackendFormat
-
Method Summary
Modifier and TypeMethodDescriptionboolean
int
int
int
Gets the channels present in the format as a bitfield of ColorChannelFlag values.int
int
int
int
int
If the backend API is Vulkan this gets the format as a VkFormat.int
hashCode()
boolean
isSRGB()
static VkBackendFormat
make
(int format) toString()
Methods inherited from class icyllis.arc3d.engine.BackendFormat
getGLFormat, isCompressed, isExternal
-
Method Details
-
make
-
getBackend
public int getBackend()- Specified by:
getBackend
in classBackendFormat
- See Also:
-
getChannelFlags
public int getChannelFlags()Description copied from class:BackendFormat
Gets the channels present in the format as a bitfield of ColorChannelFlag values.- Specified by:
getChannelFlags
in classBackendFormat
- See Also:
-
getVkFormat
public int getVkFormat()Description copied from class:BackendFormat
If the backend API is Vulkan this gets the format as a VkFormat.- Overrides:
getVkFormat
in classBackendFormat
-
isSRGB
public boolean isSRGB()- Specified by:
isSRGB
in classBackendFormat
-
getCompressionType
public int getCompressionType()- Specified by:
getCompressionType
in classBackendFormat
- See Also:
-
getBytesPerBlock
public int getBytesPerBlock()- Specified by:
getBytesPerBlock
in classBackendFormat
- Returns:
- if compressed, bytes per block, otherwise bytes per pixel
-
getDepthBits
public int getDepthBits()- Specified by:
getDepthBits
in classBackendFormat
-
getStencilBits
public int getStencilBits()- Specified by:
getStencilBits
in classBackendFormat
-
getFormatKey
public int getFormatKey()- Specified by:
getFormatKey
in classBackendFormat
- Returns:
- a key that is unique in the backend
-
hashCode
public int hashCode() -
equals
-
toString
-