23 lines
595 B
Metal
23 lines
595 B
Metal
//
|
|
// TerrainAlgorithms.metal
|
|
// Terrain2
|
|
//
|
|
// Created by Eryn Wells on 11/4/18.
|
|
// Copyright © 2018 Eryn Wells. All rights reserved.
|
|
//
|
|
|
|
#include <metal_stdlib>
|
|
#include "ShaderTypes.h"
|
|
using namespace metal;
|
|
|
|
kernel void zeroKernel(texture2d<float, access::write> outTexture [[texture(GeneratorTextureIndexOut)]],
|
|
uint2 tid [[thread_position_in_grid]])
|
|
{
|
|
outTexture.write(0, tid);
|
|
}
|
|
|
|
kernel void randomKernel(texture2d<float, access::write> outTexture [[texture(GeneratorTextureIndexOut)]],
|
|
uint2 tid [[thread_position_in_grid]])
|
|
{
|
|
|
|
}
|