a/vk: Track various limits

This commit is contained in:
Jakob Bornecrantz 2022-08-25 13:15:02 +01:00
parent b0f51acf77
commit e7c217cea5
2 changed files with 8 additions and 0 deletions
src/xrt/auxiliary/vk

View file

@ -163,6 +163,8 @@ fill_in_device_features(struct vk_bundle *vk)
vk->features.timestamp_compute_and_graphics = pdp.limits.timestampComputeAndGraphics;
vk->features.timestamp_period = pdp.limits.timestampPeriod;
vk->features.max_per_stage_descriptor_sampled_images = pdp.limits.maxPerStageDescriptorSampledImages;
vk->features.max_per_stage_descriptor_storage_images = pdp.limits.maxPerStageDescriptorStorageImages;
/*

View file

@ -145,6 +145,12 @@ struct vk_bundle
//! Were timeline semaphore requested, available, and enabled?
bool timeline_semaphore;
//! Per stage limit on sampled images (includes combined).
uint32_t max_per_stage_descriptor_sampled_images;
//! Per stage limit on storage images.
uint32_t max_per_stage_descriptor_storage_images;
} features;
//! Is the GPU a tegra device.