SPIRV-Cross/reference
Chip Davis 27af716c3a MSL: Emit F{Min,Max,Clamp} as fast:: and N{Min,Max,Clamp} as precise::.
This roughly matches their semantics in SPIR-V and MSL. For `FMin`,
`FMax`, and `FClamp`, and the Metal functions `fast::min()`,
`fast::max()`, and `fast::clamp()`, the result is undefined if any
operand is NaN. For the 'N' operations and their corresponding MSL
`precise::` functions, the result is consistent with IEEE 754 (first
non-NaN wins; result is NaN if all operands are NaN).

We can only do this with 32-bit floats, though, because Metal only
provides these variants for `float`. `half` only has one variant of
these functions that is presumably consistent with IEEE 754. I guess
that's OK; the SPIR-V spec only says that `F{Min,Max,Clamp}` are
undefined for NaNs. Performance might suffer, though.
2018-09-01 23:01:46 -05:00
..
opt MSL: Add test case for gl_FragDepth when used in function. 2018-08-29 09:21:48 +02:00
shaders Remove extra newline. 2018-08-29 14:04:20 -05:00
shaders-hlsl MSL: Fix naming issue of aliased global variables. 2018-08-27 09:59:55 +02:00
shaders-hlsl-no-opt Declare OpSpecConstantOp up-front on relevant targets. 2018-05-15 14:20:16 +02:00
shaders-msl MSL: Emit F{Min,Max,Clamp} as fast:: and N{Min,Max,Clamp} as precise::. 2018-09-01 23:01:46 -05:00
shaders-msl-no-opt CompilerMSL support larger texel buffers by using 2D Metal textures. 2018-06-26 17:30:21 -04:00
shaders-no-opt Declare OpSpecConstantOp up-front on relevant targets. 2018-05-15 14:20:16 +02:00
shaders-reflection Prefix integer types with underscore 2018-06-21 09:24:22 -07:00