GPUHardwareBufferTexture


@ExperimentalWebGpuApi
public final class GPUHardwareBufferTexture extends GPUHardwareBufferWrapper


Summary

Public constructors

GPUHardwareBufferTexture(long handle, @NonNull GPUTexture texture)

Public methods

void
final @NonNull GPUTexture

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

GPUHardwareBufferTexture

Added in 1.0.0-alpha06
public GPUHardwareBufferTexture(long handle, @NonNull GPUTexture texture)

Public methods

close

public void close()

getTexture

Added in 1.0.0-alpha06
public final @NonNull GPUTexture getTexture()