Skip to content

DataView displayed as [object DataView] instead of showing how many bytes were uploaded (bufferData, bufferSubData) #263

Closed
@lazarljubenovic

Description

@lazarljubenovic

My code is using the following bufferSubData signature.

bufferSubData(target: GLenum, dstByteOffset: GLintptr, srcData: ArrayBufferView, srcOffset: GLuint, length?: GLuint): void;

Notice that it doesn't support passing in an ArrayBuffer, but only DataView or any of the concrete TypedArray classes. I am using a DataView.

This is what I see in Spector.

image

The issue [object DataView]. It looks like an unhandled case which falls back to using a string for the report.

If you use a concrete TypeArray such as Float32Array, it tells me how much bytes were uploaded.

image

Similar thing happens to bufferData when you use a DataView instead of an ArrayBuffer or a concrete TypedArray.

image

(The STENCIL_BUFFER_BIT is another weird thing visible on the screenshot, but I filed that as a separate issue as #262.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions