From 0417e9095d7a80ef171c4413b729124b0ff8b358 Mon Sep 17 00:00:00 2001 From: bjorn Date: Mon, 27 Jun 2022 22:46:49 -0700 Subject: [PATCH] gpu: add timestampPeriod limit; --- src/core/gpu.h | 1 + src/core/gpu_vk.c | 1 + 2 files changed, 2 insertions(+) diff --git a/src/core/gpu.h b/src/core/gpu.h index 31f24f4d..3c5d4e18 100644 --- a/src/core/gpu.h +++ b/src/core/gpu.h @@ -638,6 +638,7 @@ typedef struct { uint32_t pushConstantSize; uint32_t indirectDrawCount; uint32_t instances; + float timestampPeriod; float anisotropy; float pointSize; } gpu_limits; diff --git a/src/core/gpu_vk.c b/src/core/gpu_vk.c index e313c025..bf404914 100644 --- a/src/core/gpu_vk.c +++ b/src/core/gpu_vk.c @@ -1826,6 +1826,7 @@ bool gpu_init(gpu_config* config) { config->limits->pushConstantSize = limits->maxPushConstantsSize; config->limits->indirectDrawCount = limits->maxDrawIndirectCount; config->limits->instances = multiviewProperties.maxMultiviewInstanceIndex; + config->limits->timestampPeriod = limits->timestampPeriod; config->limits->anisotropy = limits->maxSamplerAnisotropy; config->limits->pointSize = limits->pointSizeRange[1]; }