Skip to main content

Type Alias: BufferTransformProps

BufferTransformProps = Omit<GPUVectorModelProps, "fs"> & object

Defined in: modules/engine/src/compute/buffer-transform.ts:26

Properties for creating a BufferTransform

Type Declaration​

feedbackBufferMode?​

optional feedbackBufferMode?: "interleaved" | "separate"

bufferMode when binding varyings https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/transformFeedbackVaryings

feedbackBuffers?​

optional feedbackBuffers?: Record<string, Buffer | BufferRange>

Deprecated​

Use run({outputBuffers}) instead - Map of output buffers that the shaders will write results of computations to

fs?​

optional fs?: GPUVectorModelProps["fs"]

Optional fragment shader - normally not used in transforms

inputVectors?​

optional inputVectors?: GPUVectorModelInputs

Borrowed contiguous vectors mapped to vertex-buffer layout names.

outputs?​

optional outputs?: string[]

A list of named outputs corresponding to shader declarations (varyings in WebGL)

outputVectors?​

optional outputVectors?: GPUVectorModelInputs

Borrowed contiguous vectors mapped to transform-feedback varying names.

Note​

Only works under WebGL2.