Package icyllis.arc3d.engine.trash
Class SharedContext
java.lang.Object
icyllis.arc3d.engine.trash.SharedContext
Deprecated.
-
Method Summary
Modifier and TypeMethodDescriptioncreateCharacterization
(long cacheMaxResourceBytes, ImageInfo imageInfo, BackendFormat backendFormat, int origin, int sampleCount, boolean texturable, boolean mipmapped, boolean glWrapDefaultFramebuffer, boolean vkSupportInputAttachment, boolean vkSecondaryCommandBuffer, boolean isProtected) Deprecated.Create a surface characterization for a DDL that will be replayed into theContext
that created this proxy.int
Deprecated.getCaps()
Deprecated.getCompressedBackendFormat
(int compressionType) Deprecated.Retrieve theBackendFormat
for a givenCompressionType
.int
Deprecated.getDefaultBackendFormat
(int colorType, boolean renderable) Deprecated.Retrieve the defaultBackendFormat
for a givenColorType
and renderability.int
getMaxSurfaceSampleCount
(int colorType) Deprecated.Gets the maximum supported sample count for a color type.Deprecated.Deprecated.Deprecated.int
hashCode()
Deprecated.boolean
isValid()
Deprecated.boolean
Deprecated.
-
Method Details
-
createCharacterization
@Nullable public SurfaceCharacterization createCharacterization(long cacheMaxResourceBytes, ImageInfo imageInfo, BackendFormat backendFormat, int origin, int sampleCount, boolean texturable, boolean mipmapped, boolean glWrapDefaultFramebuffer, boolean vkSupportInputAttachment, boolean vkSecondaryCommandBuffer, boolean isProtected) Deprecated.Create a surface characterization for a DDL that will be replayed into theContext
that created this proxy. On failure the resulting characterization will be null.- Parameters:
cacheMaxResourceBytes
- The max resource bytes limit that will be in effect when the DDL created with this characterization is replayed. Note: the contract here is that the DDL will be created as if it had a full 'cacheMaxResourceBytes' to use. If replayed into aContext
that already has locked GPU memory, the replay can exceed the budget. To rephrase, all resource allocation decisions are made at record time and at playback time the budget limits will be ignored.imageInfo
- The image info specifying properties of theGpuSurface
that the DDL created with this characterization will be replayed into. Note: Engine doesn't make use of theImageInfo.alphaType()
.backendFormat
- Information about the format of the GPU surface that will back theGpuSurface
upon replay.origin
- The origin of theGpuSurface
that the DDL created with this characterization will be replayed into.sampleCount
- The sample count of theGpuSurface
that the DDL created with this characterization will be replayed into.texturable
- Will the surface be able to act as a texture?mipmapped
- Will the surface the DDL will be replayed into have space allocated for mipmaps?glWrapDefaultFramebuffer
- Will the surface the DDL will be replayed into be backed by GL FBO 0. This flag is only valid if using an GL backend.vkSupportInputAttachment
- Can the vulkan surface be used as in input attachment?vkSecondaryCommandBuffer
- Will the surface be wrapping a vulkan secondary command buffer via a VkSecondaryCBDrawContext? If this is true then the following is required: texturable = false mipmapped = false glWrapDefaultFramebuffer = false vkSupportInputAttachment = falseisProtected
- Will the (Vulkan) surface be DRM protected?
-
getDefaultBackendFormat
Deprecated.Retrieve the defaultBackendFormat
for a givenColorType
and renderability. It is guaranteed that this backend format will be the one used by the followingColorType
andSurfaceCharacterization.createBackendFormat(int, BackendFormat)
.The caller should check that the returned format is valid (nullability).
- Parameters:
colorType
- seeImageDesc
renderable
- true if the format will be used as color attachments
-
getCompressedBackendFormat
Deprecated.Retrieve theBackendFormat
for a givenCompressionType
. This is guaranteed to match the backend format used by the following createCompressedBackendTexture methods that take aCompressionType
.The caller should check that the returned format is valid (nullability).
- Parameters:
compressionType
- seeImageDesc
-
getMaxSurfaceSampleCount
public int getMaxSurfaceSampleCount(int colorType) Deprecated.Gets the maximum supported sample count for a color type. 1 is returned if only non-MSAA rendering is supported for the color type. 0 is returned if rendering to this color type is not supported at all.- Parameters:
colorType
- seeImageDesc
-
isValid
public boolean isValid()Deprecated.- Returns:
- initialized or not, if
ImmediateContext
is created, it must be true
-
matches
Deprecated. -
getBackend
@Internal public int getBackend()Deprecated. -
getOptions
Deprecated. -
getContextID
@Internal public int getContextID()Deprecated. -
getCaps
Deprecated. -
getThreadSafeCache
Deprecated. -
getPipelineCache
Deprecated. -
hashCode
public int hashCode()Deprecated.
-