Debug modifying the geometry

packed_float3 != float3 ¯\_(ツ)_/¯
This commit is contained in:
Eryn Wells 2018-11-11 20:16:08 -05:00
parent 3462fa2458
commit dc3de77a59
2 changed files with 11 additions and 4 deletions

View file

@ -46,7 +46,7 @@ private:
kernel void updateGeometryHeights(texture2d<float> texture [[texture(GeneratorTextureIndexIn)]],
constant float2 *texCoords [[buffer(GeneratorBufferIndexTexCoords)]],
constant Uniforms &uniforms [[buffer(GeneratorBufferIndexUniforms)]],
device float3 *vertexes [[buffer(GeneratorBufferIndexVertexes)]],
device packed_float3 *vertexes [[buffer(GeneratorBufferIndexVertexes)]],
uint2 tid [[thread_position_in_grid]])
{
constexpr sampler s(coord::normalized, address::clamp_to_zero, filter::linear);