• Exposes User Data

    Converts the texture to a set of 0-255 grayscale values, and outputs the result into outTensor.

    outTensor should be a Uint8Array of shape {width, height, 1}.

    Parameters

    • texture: Texture
    • grayscaleBuffer: Uint8Array
    • grayscaleBufferShape: vec3

    Returns void