WebGLArrayRenderTarget constructor

WebGLArrayRenderTarget([
  1. int width = 1,
  2. int height = 1,
  3. int depth = 1,
  4. WebGLRenderTargetOptions? options,
])

Implementation

WebGLArrayRenderTarget([int width = 1, int height = 1, int depth = 1, WebGLRenderTargetOptions? options]) : super(width, height, options) {
  this.depth = depth;
  texture = DataArrayTexture(null, width, height, depth);
  texture.isRenderTargetTexture = true;
}