Package icyllis.arc3d.engine
Interface Engine
- All Known Implementing Classes:
Device
,GLDevice
,VulkanDevice
public interface Engine
Shared constants, enums and utilities for Arc3D Engine.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
Possible 3D APIs that may be used by Arc3D Engine.static interface
Budget types.static interface
Describes the intended usage (type + access) a GPU buffer.static interface
Indicates whether depth buffer or stencil buffer or both will be used.static interface
A Context's cache of backend context state can be partially invalidated.static interface
static interface
Describes image view type.static interface
Types used to describe format of indices in arrays.static interface
Indicates the type of pending IO operations that can be recorded for GPU resources.static interface
Load ops.static interface
Combination of load ops and store ops.static interface
Geometric primitives used for drawing.static interface
Shader stage flags.static interface
Store ops.static interface
Image and Surfaces can be stored such that (0, 0) in texture space may correspond to either the upper-left or lower-left content pixel.static interface
Types used to describe format of vertices in arrays. -
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Some pixel configs are inherently clamped to [0,1], some are allowed to go outside that range, and some are FP but manually clamped in the XP.static final int
Some pixel configs are inherently clamped to [0,1], some are allowed to go outside that range, and some are FP but manually clamped in the XP.static final int
Some pixel configs are inherently clamped to [0,1], some are allowed to go outside that range, and some are FP but manually clamped in the XP.static final int
Describes the encoding of channel data in a ColorType.static final int
Describes the encoding of channel data in a ColorType.static final int
Describes the encoding of channel data in a ColorType.static final int
Describes the encoding of channel data in a ColorType.static final int
Describes the encoding of channel data in a ColorType.static final int
ResourceHandle is an opaque handle to a resource, actually a table index.static final int
static final int
Mask formats.static final int
Mask formats.static final int
Mask formats.static final int
static final boolean
Specifies if the holder owns the backend, OpenGL or Vulkan, object.static final boolean
Specifies if the holder owns the backend, OpenGL or Vulkan, object. -
Method Summary
Modifier and TypeMethodDescriptionstatic int
colorTypeClampType
(int ct) static int
colorTypeEncoding
(int ct) static int
colorTypeToPublic
(int ct) Block engine-private values.static int
maskFormatBytesPerPixel
(int maskFormat) Return the number of bytes-per-pixel for the specified mask format.static int
maskFormatToColorType
(int maskFormat) Return an appropriate color type for the specified mask format.
-
Field Details
-
COLOR_ENCODING_UNORM
static final int COLOR_ENCODING_UNORMDescribes the encoding of channel data in a ColorType.- See Also:
-
COLOR_ENCODING_UNORM_PACK16
static final int COLOR_ENCODING_UNORM_PACK16Describes the encoding of channel data in a ColorType.- See Also:
-
COLOR_ENCODING_UNORM_PACK32
static final int COLOR_ENCODING_UNORM_PACK32Describes the encoding of channel data in a ColorType.- See Also:
-
COLOR_ENCODING_UNORM_SRGB
static final int COLOR_ENCODING_UNORM_SRGBDescribes the encoding of channel data in a ColorType.- See Also:
-
COLOR_ENCODING_FLOAT
static final int COLOR_ENCODING_FLOATDescribes the encoding of channel data in a ColorType.- See Also:
-
CLAMP_TYPE_AUTO
static final int CLAMP_TYPE_AUTOSome pixel configs are inherently clamped to [0,1], some are allowed to go outside that range, and some are FP but manually clamped in the XP.- See Also:
-
CLAMP_TYPE_MANUAL
static final int CLAMP_TYPE_MANUALSome pixel configs are inherently clamped to [0,1], some are allowed to go outside that range, and some are FP but manually clamped in the XP.- See Also:
-
CLAMP_TYPE_NONE
static final int CLAMP_TYPE_NONESome pixel configs are inherently clamped to [0,1], some are allowed to go outside that range, and some are FP but manually clamped in the XP.- See Also:
-
MASK_FORMAT_A8
static final int MASK_FORMAT_A8Mask formats. Used by the font atlas. Important that these are 0-based.Using
maskFormatBytesPerPixel(int)
to get the number of bytes-per-pixel for the specified mask format.- See Also:
-
MASK_FORMAT_A565
static final int MASK_FORMAT_A565Mask formats. Used by the font atlas. Important that these are 0-based.Using
maskFormatBytesPerPixel(int)
to get the number of bytes-per-pixel for the specified mask format.- See Also:
-
MASK_FORMAT_ARGB
static final int MASK_FORMAT_ARGBMask formats. Used by the font atlas. Important that these are 0-based.Using
maskFormatBytesPerPixel(int)
to get the number of bytes-per-pixel for the specified mask format.- See Also:
-
LAST_MASK_FORMAT
static final int LAST_MASK_FORMAT- See Also:
-
MASK_FORMAT_COUNT
static final int MASK_FORMAT_COUNT- See Also:
-
Ownership_Borrowed
static final boolean Ownership_BorrowedSpecifies if the holder owns the backend, OpenGL or Vulkan, object.- See Also:
-
Ownership_Owned
static final boolean Ownership_OwnedSpecifies if the holder owns the backend, OpenGL or Vulkan, object.- See Also:
-
INVALID_RESOURCE_HANDLE
static final int INVALID_RESOURCE_HANDLEResourceHandle is an opaque handle to a resource, actually a table index.- See Also:
-
-
Method Details
-
colorTypeToPublic
static int colorTypeToPublic(int ct) Block engine-private values. -
colorTypeEncoding
static int colorTypeEncoding(int ct) -
colorTypeClampType
static int colorTypeClampType(int ct) -
maskFormatBytesPerPixel
static int maskFormatBytesPerPixel(int maskFormat) Return the number of bytes-per-pixel for the specified mask format. -
maskFormatToColorType
static int maskFormatToColorType(int maskFormat) Return an appropriate color type for the specified mask format.
-