4e5c8d7199
Adds support on HLSL SM 5.0, and fixes bug on GLSL. Makes sure early fragment tests is tested on MSL as well.
18 lines
262 B
GLSL
18 lines
262 B
GLSL
#include <metal_stdlib>
|
|
#include <simd/simd.h>
|
|
|
|
using namespace metal;
|
|
|
|
struct main0_out
|
|
{
|
|
float gl_FragDepth [[depth(less)]];
|
|
};
|
|
|
|
[[ early_fragment_tests ]] fragment main0_out main0()
|
|
{
|
|
main0_out out = {};
|
|
out.gl_FragDepth = 0.5;
|
|
return out;
|
|
}
|
|
|