Vulkan-Samples icon indicating copy to clipboard operation
Vulkan-Samples copied to clipboard

Framework for sample that doesn't render

Open TonyBarbour opened this issue 3 years ago • 1 comments

I'm experimenting with writing a Debug Printf sample that would run a compute shader to generate Debug Printf output. I don't see a way to create a sample that doesn't create a window. It seems that before any of my code is run, a window has already been created. Is there a way for a sample to avoid window creation and simply output to the console window?

TonyBarbour avatar Jul 10 '21 18:07 TonyBarbour

Interesting idea, currently --headless can be used to disable the window, but there is no way - to my knowledge - for a sample to manipulate the platform before the platform has initiated its components. I think this is due to the fact that a samples init phase can involve Vulkan which requires a window to be previously created.

A call-back would be needed before this phase and the platform will need to be adjusted to react to changes in configurations. I don't believe we destroy and recreate windows in the apps current lifecycle, a window is created and its life time is the life time of the app.

Added as feature request for now

TomAtkinsonArm avatar Jul 19 '21 10:07 TomAtkinsonArm