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

Framework for sample that doesn't render #297

Open
TonyBarbour opened this issue Jul 10, 2021 · 1 comment
Open

Framework for sample that doesn't render #297

TonyBarbour opened this issue Jul 10, 2021 · 1 comment
Labels
feature request Request for a new feature or improvement

Comments

@TonyBarbour
Copy link

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?

@TomAtkinsonArm
Copy link
Contributor

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 TomAtkinsonArm added the feature request Request for a new feature or improvement label Jul 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Request for a new feature or improvement
Projects
None yet
Development

No branches or pull requests

2 participants