SPIRV-Cross/reference/shaders-msl-no-opt/asm/frag/modf-frexp-scalar-access-chain-output.asm.frag
Hans-Kristian Arntzen abb345d0b3 MSL: Deal with Modf/Frexp where output is access chain to scalar.
This is not allowed as we cannot take mutable reference to a
vec.{x,y,z,w}. We only care about scalar since entire vectors are fine.
2019-07-26 11:02:38 +02:00

18 lines
304 B
JavaScript

#include <metal_stdlib>
#include <simd/simd.h>
using namespace metal;
fragment void main0()
{
float3 col;
int2 _18;
float _23;
float _21 = modf(0.1500000059604644775390625, _23);
col.x = _23;
int _24;
float _22 = frexp(0.1500000059604644775390625, _24);
_18.y = _24;
}