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
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfacePossible 3D APIs that may be used by Arc3D Engine.static interfaceBudget types.static interfaceDescribes the intended usage (type + access) a GPU buffer.static interfaceIndicates whether depth buffer or stencil buffer or both will be used.static interfaceA Context's cache of backend context state can be partially invalidated.static interfacestatic interfaceDescribes image view type.static interfaceTypes used to describe format of indices in arrays.static interfaceIndicates the type of pending IO operations that can be recorded for GPU resources.static interfaceLoad ops.static interfaceCombination of load ops and store ops.static interfaceGeometric primitives used for drawing.static interfaceShader stage flags.static interfaceStore ops.static interfaceImage 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 interfaceTypes used to describe format of vertices in arrays. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intSome 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 intSome 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 intSome 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 intDescribes the encoding of channel data in a ColorType.static final intDescribes the encoding of channel data in a ColorType.static final intDescribes the encoding of channel data in a ColorType.static final intDescribes the encoding of channel data in a ColorType.static final intDescribes the encoding of channel data in a ColorType.static final intResourceHandle is an opaque handle to a resource, actually a table index.static final intstatic final intMask formats.static final intMask formats.static final intMask formats.static final intstatic final booleanSpecifies if the holder owns the backend, OpenGL or Vulkan, object.static final booleanSpecifies if the holder owns the backend, OpenGL or Vulkan, object. -
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic intcolorTypeClampType(int ct) static intcolorTypeEncoding(int ct) static intcolorTypeToPublic(int ct) Block engine-private values.static intmaskFormatBytesPerPixel(int maskFormat) Return the number of bytes-per-pixel for the specified mask format.static intmaskFormatToColorType(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.
-