microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
163.37k stars 28.93k forks source link

Editor GPU: Add a developer command that brings up a live texture atlas viewer in a webview editor #221216

Open Tyriar opened 3 months ago

Tyriar commented 3 months ago

Right now the prototype just draws the texture atlas over the top of the screen:

image

It would be handy if we could run a developer command to bring up a webview editor that showed a live view of the texture atlas. This should pay dividends from the time it would save during development and investigating user issues.

hediet commented 3 months ago

I wouldn't use a webview editor though, just some dom overlay, like a modal dialog maybe. Much easier to implement, especially for a debug-only tool.

Tyriar commented 3 months ago

@hediet that works too, it would be good for users to be able to do this. But it would be even better if we could zoom into it and copy the image. Seeing the alpha value might be important which won't be possible without copying or putting it on a custom checkered background.