GPUComputePipeline


public final class GPUComputePipeline implements AutoCloseable


A pipeline for compute operations.

Summary

Public methods

external void

Decrements the reference count of the object and frees resources when the count reaches zero.

boolean
equals(Object other)
final external @NonNull GPUBindGroupLayout

Gets the layout of a bind group for this pipeline.

final long
int
final external void

Sets a human-readable label for debugging.

Public methods

close

Added in 1.0.0-alpha04
public external void close()

Decrements the reference count of the object and frees resources when the count reaches zero.

This is the standard way to manage object lifetimes and should be used in use blocks. After calling this, the object is no longer usable.

equals

public boolean equals(Object other)

getBindGroupLayout

Added in 1.0.0-alpha04
@FastNative
public final external @NonNull GPUBindGroupLayout getBindGroupLayout(int groupIndex)

Gets the layout of a bind group for this pipeline.

Parameters
int groupIndex

The index of the bind group.

Returns
@NonNull GPUBindGroupLayout

The bind group layout.

getHandle

Added in 1.0.0-alpha04
public final long getHandle()

hashCode

public int hashCode()

setLabel

Added in 1.0.0-alpha04
@FastNative
public final external void setLabel(@NonNull String label)

Sets a human-readable label for debugging.

Parameters
@NonNull String label

The label string.