createTexture method

  1. @override
TextureHandle createTexture(
  1. RenderTargetSpec spec
)
override

A brand-new texture matching spec, with the single TextureHandle that will ever stand for it.

Implementation

@override
TextureHandle createTexture(RenderTargetSpec spec) {
  final texture = inner.createTexture(spec);
  events.add(TraceCreateTexture(id: _texture(texture), spec: spec));
  return texture;
}