alexandre mommers
07/10/2024, 11:15 PMJsException: Exception was thrown while running JavaScript code
?
The only solution I've found so far is to wrap my call in Javascript like this:
private fun debug(handler: GPUDevice, it: GPURenderPipelineDescriptor): GPURenderPipeline = js(
"""{
try {
return handler.createRenderPipeline(it);
} catch (error) {
console.log('Caught an error:', error);
}
}"""
)
Instead of just calling handler.createRenderPipeline(it)
Igor Yakovlev
07/11/2024, 7:29 AMArtem Kobzar
07/11/2024, 8:43 AM