summaryrefslogtreecommitdiffstats
path: root/drivers/metal/rendering_device_driver_metal.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/metal/rendering_device_driver_metal.h')
-rw-r--r--drivers/metal/rendering_device_driver_metal.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/metal/rendering_device_driver_metal.h b/drivers/metal/rendering_device_driver_metal.h
index 1f752811ee..7b3f47c2a6 100644
--- a/drivers/metal/rendering_device_driver_metal.h
+++ b/drivers/metal/rendering_device_driver_metal.h
@@ -241,7 +241,13 @@ private:
friend struct PushConstantData;
private:
- Error _reflect_spirv16(VectorView<ShaderStageSPIRVData> p_spirv, ShaderReflection &r_reflection);
+ /// Contains additional metadata about the shader.
+ struct ShaderMeta {
+ /// Indicates whether the shader uses multiview.
+ bool has_multiview = false;
+ };
+
+ Error _reflect_spirv16(VectorView<ShaderStageSPIRVData> p_spirv, ShaderReflection &r_reflection, ShaderMeta &r_shader_meta);
public:
virtual String shader_get_binary_cache_key() override final;