SPIRV-Cross-Vulnerable/reference
Chip Davis cb35934248 MSL: Support dynamic offsets for buffers in argument buffers.
Vulkan has two types of buffer descriptors,
`VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC` and
`VK_DESCRIPTOR_TYPE_STORAGE_BUFFER_DYNAMIC`, which allow the client to
offset the buffers by an amount given when the descriptor set is bound
to a pipeline. Metal provides no direct support for this when the buffer
in question is in an argument buffer, so once again we're on our own.
These offsets cannot be stored or associated in any way with the
argument buffer itself, because they are set at bind time.  Different
pipelines may have different offsets set. Therefore, we must use a
separate buffer, not in any argument buffer, to hold these offsets. Then
the shader must manually offset the buffer pointer.

This change fully supports arrays, including arrays of arrays, even
though Vulkan forbids them. It does not, however, support runtime
arrays. Perhaps later.
2019-09-05 23:29:00 -05:00
..
opt MSL: Support dynamic offsets for buffers in argument buffers. 2019-09-05 23:29:00 -05:00
shaders Support the SPV_EXT_fragment_shader_interlock extension. 2019-09-02 12:31:10 -05:00
shaders-hlsl Support the SPV_EXT_fragment_shader_interlock extension. 2019-09-02 12:31:10 -05:00
shaders-hlsl-no-opt Add test case for interlocks in control flow. 2019-09-04 13:10:32 +02:00
shaders-msl MSL: Support dynamic offsets for buffers in argument buffers. 2019-09-05 23:29:00 -05:00
shaders-msl-no-opt Add test case for interlocks in control flow. 2019-09-04 13:10:32 +02:00
shaders-no-opt Add test case for interlocks in control flow. 2019-09-04 13:10:32 +02:00
shaders-reflection Employ heuristics to figure out how to emit SSBO/UAV reflection names. 2019-06-10 11:24:24 +02:00