summaryrefslogtreecommitdiff
path: root/servers/rendering
diff options
context:
space:
mode:
authorBastiaan Olij <mux213@gmail.com>2021-05-04 15:30:21 +1000
committerBastiaan Olij <mux213@gmail.com>2021-05-06 12:06:07 +1000
commit90ef5d73c495e82fde390308194cf622a45039e4 (patch)
tree0815088881673181b73e586db3814605ed128657 /servers/rendering
parent758bccf364729474f8ffbcf15a0bb6e9bad02d9c (diff)
Cleanup vulkan capabilities check and add multiview check
Diffstat (limited to 'servers/rendering')
-rw-r--r--servers/rendering/rendering_device.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/servers/rendering/rendering_device.h b/servers/rendering/rendering_device.h
index 2de0549e8d..d86c44a206 100644
--- a/servers/rendering/rendering_device.h
+++ b/servers/rendering/rendering_device.h
@@ -93,10 +93,14 @@ public:
DeviceFamily device_family = DEVICE_UNKNOWN;
uint32_t version_major = 1.0;
uint32_t version_minor = 0.0;
+
// subgroup capabilities
uint32_t subgroup_size = 0;
uint32_t subgroup_in_shaders = 0; // Set flags using SHADER_STAGE_VERTEX_BIT, SHADER_STAGE_FRAGMENT_BIT, etc.
uint32_t subgroup_operations = 0; // Set flags, using SubgroupOperations
+
+ // features
+ bool supports_multiview = false; // If true this device supports multiview options
};
typedef Vector<uint8_t> (*ShaderCompileFunction)(ShaderStage p_stage, const String &p_source_code, ShaderLanguage p_language, String *r_error, const Capabilities *p_capabilities);