예제 #1
0
 public override void InitializeResources(IResourceWriter1D positionsWriter, IResourceWriter1D valuesWriter,
                                          IResourceWriter1D masksWriter)
 {
     // We're not using vertex masks, so just ignore the writer.
     positionsWriter.UpdateResource(positions);
     valuesWriter.UpdateResource(values);
 }
 public override void InitializeResources(IResourceWriter1D positionsWriter, IResourceWriter1D vertexMasksWriter) =>
 positionsWriter.UpdateResource(positions);
 public void Write(IResourceWriter1D positionsWriter, IResourceWriter1D vertexMasksWriter) =>
 positionsWriter.UpdateResource(new[] { value }, 0, 1, index);
예제 #4
0
 public void Write(IResourceWriter1D positionsWriter, IResourceWriter1D valuesWriter,
                   IResourceWriter1D masksWriter) =>
 valuesWriter.UpdateResource(reader.values);
예제 #5
0
 public override void InitializeResources(IResourceWriter1D positionsWriter, IResourceWriter1D vertexMasksWriter) =>
 positionsWriter.UpdateResource(RandomizePoints(VertexCount, 5f, 25));