Skip to content

Capturing creation calls? #17

Description

@greggman

I didn't look at the capture code to verify this but I changed basic-animated-triangles.html so it starts a capture before it makes any resources.

In the debugger I think I'd expect to see those calls device.createBuffer, device.createTexture.

Should that already be working?

I checked in the change if you want to try it.

Activity

  1. Kangz commented on Nov 3, 2022

    @Kangz
    Collaborator

    The buffers and textures created during the capture are part of the initial object list in the trace but the commands themselves don't have side effect aside from creating the object so they are not traced in "commands". We could add it, but what's the point of showing the "createTexture" call when you have the same data when inspecting the texture?

  2. greggman commented on Nov 3, 2022

    @greggman
    MemberAuthor

    I guess I'm used to other graphics API debuggers. They all show all the calls.

    I guess I'm also not sure why you wouldn't want them? I can certainly create and delete buffers in a frame. Will those not show up too as steps?

  3. Kangz commented on Nov 4, 2022

    @Kangz
    Collaborator

    Ok, I didn't use a graphics debugger in some time so I didn't realize they showed object creation calls. We can easily add it. Ditto for destruction (that's already there actually (not GC, but buffer.destroy())).

  4. greggman commented on Nov 4, 2022

    @greggman
    MemberAuthor

    Just to be clear, graphics debuggers I used show creation calls captured during a trace. They don't show creation calls that happened before the trace.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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