[Vulkan] Check each device capabilities before selecting it.
Split instance and physical device selection function and move device selection to window creation, to reject devices without present capability. Add device preferred type check in discrete > integrated > virtual > cpu > other order. Add device list printout. Add command line argument to override device selection.
This commit is contained in:
parent
f2beac49bb
commit
b11e619b19
5 changed files with 219 additions and 124 deletions
|
|
@ -63,6 +63,7 @@ private:
|
|||
double _physics_interpolation_fraction = 0.0f;
|
||||
bool abort_on_gpu_errors = false;
|
||||
bool use_validation_layers = false;
|
||||
int32_t gpu_idx = -1;
|
||||
|
||||
uint64_t _process_frames = 0;
|
||||
bool _in_physics = false;
|
||||
|
|
@ -135,6 +136,7 @@ public:
|
|||
|
||||
bool is_abort_on_gpu_errors_enabled() const;
|
||||
bool is_validation_layers_enabled() const;
|
||||
int32_t get_gpu_index() const;
|
||||
|
||||
Engine();
|
||||
virtual ~Engine() {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue