Package icyllis.arc3d.mock
Class MockBackendFormat
java.lang.Object
icyllis.arc3d.engine.BackendFormat
icyllis.arc3d.mock.MockBackendFormat
-
Constructor Summary
ConstructorDescriptionMockBackendFormat
(int colorType, int compressionType, short depthBits, boolean isStencilFormat) -
Method Summary
Modifier and TypeMethodDescriptionint
int
int
Gets the channels present in the format as a bitfield of ColorChannelFlag values.int
int
int
int
boolean
isSRGB()
static MockBackendFormat
make
(int colorType, int compressionType) static MockBackendFormat
make
(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
@Nonnull public static MockBackendFormat make(int colorType, int compressionType, int depthBits, boolean isStencilFormat) -
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:
-
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
-