GPUComputePipeline
class GPUComputePipeline : AutoCloseable
A pipeline for compute operations.
Summary
Public functions |
|
|---|---|
open external Unit |
close()Decrements the reference count of the object and frees resources when the count reaches zero. |
open operator Boolean |
|
external GPUBindGroupLayout |
@FastNativeGets the layout of a bind group for this pipeline. |
open Int |
hashCode() |
external Unit |
@FastNativeSets a human-readable label for debugging. |
Public functions
close
open external fun close(): Unit
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.
getBindGroupLayout
@FastNative
external fun getBindGroupLayout(groupIndex: Int): GPUBindGroupLayout
Gets the layout of a bind group for this pipeline.
| Parameters | |
|---|---|
groupIndex: Int |
The index of the bind group. |
| Returns | |
|---|---|
GPUBindGroupLayout |
The bind group layout. |
setLabel
@FastNative
external fun setLabel(label: String): Unit
Sets a human-readable label for debugging.
| Parameters | |
|---|---|
label: String |
The label string. |