Class RenderSessionHandle
- All Implemented Interfaces:
AutoCloseable
-
Method Summary
Modifier and TypeMethodDescriptionAcquires an explicit Metal session-owned texture frame handle.Acquires an explicit OpenGL session-owned texture frame handle.Acquires an explicit Vulkan session-owned texture frame handle.static RenderSessionHandleattachMetalBorrowedTexture(MapHandle map, MetalBorrowedTextureDescriptor descriptor) static RenderSessionHandleattachMetalOwnedTexture(MapHandle map, MetalOwnedTextureDescriptor descriptor) static RenderSessionHandleattachMetalSurface(MapHandle map, MetalSurfaceDescriptor descriptor) static RenderSessionHandleattachOpenGLBorrowedTexture(MapHandle map, OpenGLBorrowedTextureDescriptor descriptor) static RenderSessionHandleattachOpenGLOwnedTexture(MapHandle map, OpenGLOwnedTextureDescriptor descriptor) static RenderSessionHandleattachOpenGLSurface(MapHandle map, OpenGLSurfaceDescriptor descriptor) static RenderSessionHandleattachVulkanBorrowedTexture(MapHandle map, VulkanBorrowedTextureDescriptor descriptor) static RenderSessionHandleattachVulkanOwnedTexture(MapHandle map, VulkanOwnedTextureDescriptor descriptor) static RenderSessionHandleattachVulkanSurface(MapHandle map, VulkanSurfaceDescriptor descriptor) voidvoidclose()voiddetach()voidgetFeatureState(FeatureStateSelector selector) booleanisClosed()map()queryFeatureExtension(String sourceId, Feature feature, String extension, String extensionField) queryFeatureExtension(String sourceId, Feature feature, String extension, String extensionField, JsonValue arguments) queryRenderedFeatures(RenderedQueryGeometry geometry) queryRenderedFeatures(RenderedQueryGeometry geometry, RenderedFeatureQueryOptions options) querySourceFeatures(String sourceId) querySourceFeatures(String sourceId, SourceFeatureQueryOptions options) readPremultipliedRgba8(NativeBuffer buffer) Reads into a caller-owned buffer.voidvoidremoveFeatureState(FeatureStateSelector selector) voidvoidresize(int width, int height, double scaleFactor) voidsetFeatureState(FeatureStateSelector selector, JsonValue value)
-
Method Details
-
attachMetalOwnedTexture
public static RenderSessionHandle attachMetalOwnedTexture(MapHandle map, MetalOwnedTextureDescriptor descriptor) -
attachMetalBorrowedTexture
public static RenderSessionHandle attachMetalBorrowedTexture(MapHandle map, MetalBorrowedTextureDescriptor descriptor) -
attachVulkanOwnedTexture
public static RenderSessionHandle attachVulkanOwnedTexture(MapHandle map, VulkanOwnedTextureDescriptor descriptor) -
attachVulkanBorrowedTexture
public static RenderSessionHandle attachVulkanBorrowedTexture(MapHandle map, VulkanBorrowedTextureDescriptor descriptor) -
attachOpenGLOwnedTexture
public static RenderSessionHandle attachOpenGLOwnedTexture(MapHandle map, OpenGLOwnedTextureDescriptor descriptor) -
attachOpenGLBorrowedTexture
public static RenderSessionHandle attachOpenGLBorrowedTexture(MapHandle map, OpenGLBorrowedTextureDescriptor descriptor) -
attachMetalSurface
public static RenderSessionHandle attachMetalSurface(MapHandle map, MetalSurfaceDescriptor descriptor) -
attachVulkanSurface
public static RenderSessionHandle attachVulkanSurface(MapHandle map, VulkanSurfaceDescriptor descriptor) -
attachOpenGLSurface
public static RenderSessionHandle attachOpenGLSurface(MapHandle map, OpenGLSurfaceDescriptor descriptor) -
resize
public void resize(int width, int height, double scaleFactor) -
renderUpdate
public void renderUpdate() -
detach
public void detach() -
reduceMemoryUse
public void reduceMemoryUse() -
clearData
public void clearData() -
dumpDebugLogs
public void dumpDebugLogs() -
setFeatureState
-
getFeatureState
-
removeFeatureState
-
queryRenderedFeatures
-
queryRenderedFeatures
public List<QueriedFeature> queryRenderedFeatures(RenderedQueryGeometry geometry, RenderedFeatureQueryOptions options) -
querySourceFeatures
-
querySourceFeatures
-
queryFeatureExtension
public FeatureExtensionResult queryFeatureExtension(String sourceId, Feature feature, String extension, String extensionField) -
queryFeatureExtension
-
textureImageInfo
-
readPremultipliedRgba8
Reads into a caller-owned buffer.Use
textureImageInfo()first when sizing reusable buffers; undersized buffers throwInvalidArgumentExceptionafter native reports the required layout. -
acquireMetalOwnedTextureFrame
Acquires an explicit Metal session-owned texture frame handle.This advanced API is intended for integrations that submit GPU work using the returned texture and need to release it after that work completes. The returned handle must be closed on the render session owner thread after GPU work using
MetalOwnedTextureFrame.texture()has completed. While the handle is open, the native session rejects resize, render, detach, destroy, and second-acquire operations. -
acquireVulkanOwnedTextureFrame
Acquires an explicit Vulkan session-owned texture frame handle.This advanced API is intended for integrations that submit GPU work using the returned image and need to release it after an external fence signals. The returned handle must be closed on the render session owner thread after GPU work using
VulkanOwnedTextureFrame.image()orVulkanOwnedTextureFrame.imageView()has completed. While the handle is open, the native session rejects resize, render, detach, destroy, and second-acquire operations. -
acquireOpenGLOwnedTextureFrame
Acquires an explicit OpenGL session-owned texture frame handle.This advanced API is intended for integrations that submit GPU work using the returned texture and need to release it after that work completes. The returned handle must be closed on the render session owner thread after GPU work using
OpenGLOwnedTextureFrame.texture()has completed. While the handle is open, the native session rejects resize, render, detach, destroy, and second-acquire operations. -
close
public void close()- Specified by:
closein interfaceAutoCloseable
-
isClosed
public boolean isClosed() -
map
-