Skip to content

Commit

Permalink
Updated device requirements to match real hardware.
Browse files Browse the repository at this point in the history
  • Loading branch information
zlogic committed Jan 28, 2024
1 parent 3a09c3f commit 94be902
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/correlation/vk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -885,6 +885,7 @@ impl Device {

Ok(())
}

unsafe fn init_vk(entry: &ash::Entry) -> VkResult<ash::Instance> {
let app_name = CStr::from_bytes_with_nul_unchecked(b"Cybervision\0");
let engine_name = CStr::from_bytes_with_nul_unchecked(b"cybervision\0");
Expand Down Expand Up @@ -913,7 +914,7 @@ impl Device {
let device = *device;
let props = instance.get_physical_device_properties(device);
if props.limits.max_push_constants_size < std::mem::size_of::<ShaderParams>() as u32
|| props.limits.max_per_stage_descriptor_storage_buffers < MAX_BINDINGS
|| props.limits.max_bound_descriptor_sets < MAX_BINDINGS
|| props.limits.max_storage_buffer_range < max_buffer_size as u32
{
return None;
Expand Down

0 comments on commit 94be902

Please sign in to comment.