Exemplo n.º 1
0
 /// <summary>
 /// Instantiate new GpuTextureBuilder with given resolution. Creates a new RenderTexture
 /// </summary>
 /// <param name="shader">Compute shader to use. Pass this along to chained GpuTextureBuilders</param>
 /// <param name="resolution">Resolution of the new RenderTexture</param>
 public TextureBuilder(ComputeShader shader, int resolution) : this(shader, BufferUtils.CreateRenderTexture(resolution))
 {
 }