Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add an order number for showing by call order instead of apply order? #26

Open
greggman opened this issue Jan 19, 2023 · 0 comments
Open

Comments

@greggman
Copy link
Collaborator

I don't know if this would be useful or not but, the trace doesn't record what you did. It records the effect of what you did.

So,

const commandEncoder = device.createCommandEncoder();
const passEncoder = commandEncoder.beginRenderPass(renderPassDescriptor);
passEncoder.setPipeline(pipeline);
passEncoder.draw(1)
device.queue.writeBuffer()
passEncoder.end();
device.queue.submit([commandEncoder.finish()]);

Will show up in the trace as

createEncoder
writeBuffer
submit
   pass
      setPipeline
      draw

If each command recorded an order id then we could optionally display the commands in call order. Not sure how useful that is. I'm just worried that devs will want to see what they did, not just results of what they did.

Like the mapAsync being translated in bufferUpdateData, I think the user would like to see mapAsyc, getMappedRange, unmap? or not?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant