gpu: add timestampPeriod limit;

This commit is contained in:
bjorn 2022-06-27 22:46:49 -07:00
parent c327eb103f
commit 0417e9095d
2 changed files with 2 additions and 0 deletions

View File

@ -638,6 +638,7 @@ typedef struct {
uint32_t pushConstantSize;
uint32_t indirectDrawCount;
uint32_t instances;
float timestampPeriod;
float anisotropy;
float pointSize;
} gpu_limits;

View File

@ -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];
}