mirror of
https://github.com/KhronosGroup/SPIRV-Tools
synced 2024-11-25 04:50:04 +00:00
2ea4003633
* opt: split composite from array flattening DXC has an option to flatten resource arrays. But when this option is not used, the resource arrays should be kept as-is. On the other hand, when a struct contains resources, we MUST flatten is to be compliant with the Vulkan spec. Because this pass flattens both types of resources, using a struct of resources automatically implied flattening arrays. By adding those 2 new settings, we decide if the pass flattens only one type of resources, or both. Note: the flatten_arrays flag only impacts resource arrays. Arrays of composites containing resources are still flattened. Since the API is considered stable, I added 2 new functions to create passes with one flag or the other, and kept the original behavior as-is. Related to https://github.com/microsoft/DirectXShaderCompiler/issues/6745 Signed-off-by: Nathan Gauër <brioche@google.com> * add commandline options Signed-off-by: Nathan Gauër <brioche@google.com> * clang-format Signed-off-by: Nathan Gauër <brioche@google.com> --------- Signed-off-by: Nathan Gauër <brioche@google.com> |
||
---|---|---|
.. | ||
as | ||
cfg | ||
diff | ||
dis | ||
emacs | ||
fuzz | ||
lesspipe | ||
link | ||
lint | ||
objdump | ||
opt | ||
reduce | ||
sva | ||
util | ||
val | ||
CMakeLists.txt | ||
io.h |