getCurrentDepthStencilFormat method

dynamic getCurrentDepthStencilFormat()

Implementation

getCurrentDepthStencilFormat() {
  var format;

  var renderTarget = this.getRenderTarget();

  if (renderTarget != null) {
    var renderTargetProperties = this._properties.get(renderTarget);
    format = renderTargetProperties["depthTextureFormat"];
  } else {
    format = GPUTextureFormat.Depth24PlusStencil8;
  }

  return format;
}