2219c4a392
MSL 2.3 has everything needed to support this extension on all platforms. The existing `discard_fragment()` function was given demote semantics, similar to Direct3D, and the `simd_is_helper_thread()` function was finally added to iOS. I've left the old test alone. Should I remove it in favor of these?
13 lines
184 B
JavaScript
13 lines
184 B
JavaScript
#include <metal_stdlib>
|
|
#include <simd/simd.h>
|
|
|
|
using namespace metal;
|
|
|
|
fragment void main0()
|
|
{
|
|
discard_fragment();
|
|
bool _9 = simd_is_helper_thread();
|
|
bool helper = _9;
|
|
}
|
|
|