SPIRV-Cross/reference/shaders-msl-no-opt/comp/intmin-literal.comp

23 lines
349 B
Plaintext
Raw Normal View History

#include <metal_stdlib>
#include <simd/simd.h>
using namespace metal;
struct SSBO
{
float a;
};
struct UBO
{
float b;
};
constant uint3 gl_WorkGroupSize [[maybe_unused]] = uint3(1u);
kernel void main0(device SSBO& _9 [[buffer(0)]], constant UBO& _14 [[buffer(1)]])
{
_9.a = as_type<float>(as_type<int>(_14.b) ^ int(0x80000000));
}