Package icyllis.arc3d.mock
Class MockBackendFormat
java.lang.Object
icyllis.arc3d.engine.BackendFormat
icyllis.arc3d.mock.MockBackendFormat
-
Constructor Summary
ConstructorsConstructorDescriptionMockBackendFormat(int colorType, int compressionType, short depthBits, boolean isStencilFormat) -
Method Summary
Modifier and TypeMethodDescriptionintintintGets the channels present in the format as a bitfield of ColorChannelFlag values.intintintintbooleanisSRGB()static @NonNull MockBackendFormatmake(int colorType, int compressionType) static @NonNull MockBackendFormatmake(int colorType, int compressionType, int depthBits, boolean isStencilFormat) Methods inherited from class icyllis.arc3d.engine.BackendFormat
getGLFormat, getVkFormat, isCompressed, isExternal
-
Constructor Details
-
MockBackendFormat
public MockBackendFormat(int colorType, int compressionType, short depthBits, boolean isStencilFormat) - See Also:
-
-
Method Details
-
make
-
make
public static @NonNull MockBackendFormat make(int colorType, int compressionType, int depthBits, boolean isStencilFormat) -
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:
-
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
-