getCurrentColorFormat method
dynamic
getCurrentColorFormat()
Implementation
getCurrentColorFormat() {
var format;
var renderTarget = this.getRenderTarget();
if (renderTarget != null) {
var renderTargetProperties = this._properties.get(renderTarget);
format = renderTargetProperties["colorTextureFormat"];
} else {
format = GPUTextureFormat.BGRA8Unorm; // default context format
}
return format;
}