diff options
author | Thaddeus Crews <repiteo@outlook.com> | 2024-11-10 12:13:02 -0600 |
---|---|---|
committer | Thaddeus Crews <repiteo@outlook.com> | 2024-11-10 12:13:02 -0600 |
commit | 246e8e9ecce752588bb884346d08edae56ed95a9 (patch) | |
tree | 1f2faf35afc00409fbbcd8f4fd4f448175a09a24 /drivers/metal/rendering_device_driver_metal.h | |
parent | b80aa65467fe71508bfa43a7d67348bc6f02a6d0 (diff) | |
parent | 3dac3887e94845b7c73537f6be84a4c14715969a (diff) | |
download | redot-engine-246e8e9ecce752588bb884346d08edae56ed95a9.tar.gz |
Merge pull request #98803 from stuartcarnie/metal_multiview
Metal: Multiview support
Diffstat (limited to 'drivers/metal/rendering_device_driver_metal.h')
-rw-r--r-- | drivers/metal/rendering_device_driver_metal.h | 8 |
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 f62a164ef9..e238de958e 100644 --- a/drivers/metal/rendering_device_driver_metal.h +++ b/drivers/metal/rendering_device_driver_metal.h @@ -239,7 +239,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; |