GPUHardwareBufferExternalTexture


@ExperimentalWebGpuApi
public final class GPUHardwareBufferExternalTexture extends GPUHardwareBufferWrapper


Summary

Public constructors

GPUHardwareBufferExternalTexture(
    long handle,
    @NonNull GPUExternalTexture externalTexture
)

Public methods

void
final @NonNull GPUExternalTexture

Inherited methods

From androidx.webgpu.GPUHardwareBufferWrapper
final void
beginAccess(GPUSyncFence[] fences)

Begins access to the hardware buffer, passing any wait fences to the native layer.

final GPUSyncFence

Ends access to the hardware buffer, returning a signal fence from the native layer.

final external void
nativeBeginAccess(long handle, int[] fences)
final external void
nativeDestroy(long handle)
final external int
nativeEndAccess(long handle)

Public constructors

GPUHardwareBufferExternalTexture

Added in 1.0.0-alpha06
public GPUHardwareBufferExternalTexture(
    long handle,
    @NonNull GPUExternalTexture externalTexture
)

Public methods

close

public void close()

getExternalTexture

Added in 1.0.0-alpha06
public final @NonNull GPUExternalTexture getExternalTexture()