Package icyllis.arc3d.vulkan
Class VkBackendFormat
java.lang.Object
icyllis.arc3d.engine.BackendFormat
icyllis.arc3d.vulkan.VkBackendFormat
-
Method Summary
Modifier and TypeMethodDescriptionbooleanintintintGets the channels present in the format as a bitfield of ColorChannelFlag values.intintintintintIf the backend API is Vulkan this gets the format as a VkFormat.inthashCode()booleanisSRGB()static @NonNull VkBackendFormatmake(int format) toString()Methods inherited from class icyllis.arc3d.engine.BackendFormat
getGLFormat, isCompressed, isExternal
-
Method Details
-
make
-
getBackend
public int getBackend()- Specified by:
getBackendin classBackendFormat- See Also:
-
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:
-
getVkFormat
public int getVkFormat()Description copied from class:BackendFormatIf the backend API is Vulkan this gets the format as a VkFormat.- Overrides:
getVkFormatin classBackendFormat
-
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
-