mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-18 15:01:41 +00:00
Add vulkan developer flag
This commit is contained in:
parent
68449d0f6f
commit
8a3cd224a3
2 changed files with 3 additions and 2 deletions
|
@ -97,6 +97,7 @@ void Sys_MaskPrintf (int mask, const char *fmt, ...) __attribute__((format(print
|
|||
#define SYS_GLSL (1|2048)
|
||||
#define SYS_SKIN (1|4096)
|
||||
#define SYS_MODEL (1|8192)
|
||||
#define SYS_VULKAN (1|16384)
|
||||
|
||||
int Sys_CheckInput (int idle, int net_socket);
|
||||
const char *Sys_ConsoleInput (void);
|
||||
|
|
|
@ -102,7 +102,7 @@ get_instance_layers_and_extensions (vulkan_ctx_t *ctx)
|
|||
}
|
||||
instanceExtensionNames[i] = 0;
|
||||
|
||||
if (developer->int_val & SYS_VID) {
|
||||
if (developer->int_val & SYS_VULKAN) {
|
||||
for (i = 0; i < numLayers; i++) {
|
||||
Sys_Printf ("%s %x %u %s\n",
|
||||
properties[i].layerName,
|
||||
|
@ -154,7 +154,7 @@ init_physdev (VulkanInstance_t *instance, VkPhysicalDevice dev, VulkanPhysDevice
|
|||
&physdev->numQueueFamilies,
|
||||
physdev->queueFamilies);
|
||||
|
||||
if (developer->int_val & SYS_VID) {
|
||||
if (developer->int_val & SYS_VULKAN) {
|
||||
VkPhysicalDeviceProperties *prop = &physdev->properties;
|
||||
Sys_Printf ("dev: %p\n", dev);
|
||||
Sys_Printf (" %x %x\n", prop->apiVersion, prop->driverVersion);
|
||||
|
|
Loading…
Reference in a new issue