e2c95bdcbc
We used to use the Binding decoration for this, but this method is hopelessly broken. If no explicit MSL resource remapping exists, we remap automatically in a manner which should always "just work".
16 lines
193 B
Plaintext
16 lines
193 B
Plaintext
#include <metal_stdlib>
|
|
#include <simd/simd.h>
|
|
|
|
using namespace metal;
|
|
|
|
struct SSBO
|
|
{
|
|
float4 value;
|
|
};
|
|
|
|
kernel void main0(device SSBO& _10 [[buffer(0)]])
|
|
{
|
|
_10.value = float4(20.0);
|
|
}
|
|
|