interface IDataBufferFloat32 (Niantic.ARDK.AR.Awareness.IDataBufferFloat32)

Overview

interface IDataBufferFloat32: Niantic.ARDK.AR.Awareness.IDataBuffer {
    // methods

    bool CreateOrUpdateTextureARGB32(
        ref Texture2D texture,
        FilterMode filterMode = FilterMode.Point,
        Func<float, float> valueConverter = null
    );

    bool CreateOrUpdateTextureRFloat(
        ref Texture2D texture,
        FilterMode filterMode = FilterMode.Point
    );
};

// direct descendants

interface IDepthBuffer;

Inherited Members

public:
    // properties

    UInt32 Height;
    CameraIntrinsics Intrinsics;
    bool IsKeyframe;
    Matrix4x4 ViewMatrix;
    UInt32 Width;
    NativeArray<T> Data;

    // methods

    IAwarenessBuffer GetCopy();
    T Sample(Vector2 uv);
    T Sample(Vector2 uv, Matrix4x4 transform);

Detailed Documentation

Methods

bool CreateOrUpdateTextureARGB32(
    ref Texture2D texture,
    FilterMode filterMode = FilterMode.Point,
    Func<float, float> valueConverter = null
)

Update (or create, if needed) a texture with this buffer's data.

Parameters:

texture

Reference to the texture to copy to. This method will create a texture if the reference is null.

valueConverter

Defines a function to perform additional processing on the values before pushing to the GPU. This is usually used to normalize values for ARGB32 textures.

Returns:

True if the buffer was successfully copied to the given texture.

bool CreateOrUpdateTextureRFloat(
    ref Texture2D texture,
    FilterMode filterMode = FilterMode.Point
)

Update (or create, if needed) a texture with this buffer's data.

Parameters:

texture

Reference to the texture to copy to. This method will create a texture if the reference is null.

Returns:

True if the buffer was successfully copied to the given texture.