Status: Available
Owner: ----
CC:
k...@chromium.org, geoff...@
chromium.org, kpidd...@
apple.com Components: Translator
OS: Mac iOS
Priority: Medium
Renderer: Metal
Type: Defect
New issue 8691 by lexa....@
gmail.com: Metal: Rewrite constant initializers containing matrices
https://bugs.chromium.org/p/angleproject/issues/detail?id=8691Metal shaders fail to compile when a constant array or struct initializer contains matrix variables.
For example, the following snippet fails:
constant metal::float4x4 m0 = metal::float4x4(1.0f);
constant metal::array<metal::float4x4, 1> m_arr = {m0};
This could be worked around by replacing matrix variables in initializers with matrix constructors using columns of the original variable like this:
constant metal::array<metal::float4x4, 1> m_arr = {
metal::float4x4(m0[0], m0[1], m0[2], m0[3])
};
--
You received this message because:
1. The project was configured to send all issue notifications to this address
You may adjust your notification preferences at:
https://bugs.chromium.org/hosting/settings